schangxiang@126.com
2025-03-27 71e1322fa3f5879b9d71930b783ed1a393477451
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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;
        }
    }
}