wanshenmean
5 天以前 5171d3f59b89389bf75293afd210cfa6de4ccff7
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Collections.Generic;
 
namespace WIDESEAWCS_Common.Constants
{
    /// <summary>
    /// 堆垛机巷道前缀常量
    /// </summary>
    /// <remarks>
    /// 定义巷道编码的前缀与命令类型的映射关系。
    /// </remarks>
    public class StackerCraneRoadwayConst
    {
        /// <summary>
        /// 成型堆垛机巷道前缀
        /// </summary>
        /// <remarks>
        /// 以 HC 开头的巷道使用成型堆垛机命令格式。
        /// </remarks>
        public const string FormationPrefix = "HC";
 
        /// <summary>
        /// 标准堆垛机巷道前缀(GW)
        /// </summary>
        /// <remarks>
        /// 以 GW 开头的巷道使用标准堆垛机命令格式。
        /// </remarks>
        public const string StandardPrefixGW = "GW";
 
        /// <summary>
        /// 标准堆垛机巷道前缀(CW)
        /// </summary>
        /// <remarks>
        /// 以 CW 开头的巷道使用标准堆垛机命令格式。
        /// </remarks>
        public const string StandardPrefixCW = "CW";
 
        /// <summary>
        /// 巷道前缀到命令类型的默认映射
        /// </summary>
        /// <remarks>
        /// Key: 巷道编码前缀
        /// Value: 命令类型名称
        /// </remarks>
        public static readonly Dictionary<string, StackerCraneCommandTypeEnum> DefaultRoadwayCommandMapping = new()
        {
            { FormationPrefix, StackerCraneCommandTypeEnum.Formation },
            { StandardPrefixGW, StackerCraneCommandTypeEnum.Standard },
            { StandardPrefixCW, StackerCraneCommandTypeEnum.Standard }
        };
    }
}