using iWareModel; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iWareCC.DeviceThreadFactory { /// /// 设备线程工厂 /// public class DeviceThreadServiceFactory { /// /// 获取设备线程对象 /// /// /// public static DeviceThreadServiceHandle GetHandle(EDeviceType deviceType) { DeviceThreadServiceHandle handler = null; switch (deviceType) { case EDeviceType.堆垛机: handler = new SrmTaskThreadService(iWareCommon.Utils.LogType.SrmTheadService); break; //case EDeviceType.RGV: // handler = new RgvTaskThreadService(iWareCommon.Utils.LogType.RgvThreadService); // break; case EDeviceType.输送线: handler = new ConveyorThreadService(iWareCommon.Utils.LogType.ConveyorThreadService); break; case EDeviceType.AGV: handler = new AGVThreadService(iWareCommon.Utils.LogType.AGVThreadService); break; } return handler; } } }