using iWareModel;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWareCC.DeviceThreadFactory
|
{
|
/// <summary>
|
/// 设备线程工厂
|
/// </summary>
|
public class DeviceThreadServiceFactory
|
{
|
/// <summary>
|
/// 获取设备线程对象
|
/// </summary>
|
/// <param name="deviceType"></param>
|
/// <returns></returns>
|
public static DeviceThreadServiceHandle GetHandle(EDeviceType deviceType)
|
{
|
DeviceThreadServiceHandle handler = null;
|
switch (deviceType)
|
{
|
case EDeviceType.堆垛机:
|
handler = new SrmTaskThreadService(iWareCommon.Utils.LogType.DataProcess_BZ39_IssueInboundTask);
|
break;
|
case EDeviceType.RGV:
|
handler = new RgvTaskThreadService(iWareCommon.Utils.LogType.StationThreadService);
|
break;
|
}
|
return handler;
|
}
|
}
|
}
|