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.StationThreadService); break; } return handler; } } }