using System.Collections.Generic; namespace WIDESEAWCS_Common.Constants { /// /// 堆垛机巷道前缀常量 /// /// /// 定义巷道编码的前缀与命令类型的映射关系。 /// public class StackerCraneRoadwayConst { /// /// 成型堆垛机巷道前缀 /// /// /// 以 HC 开头的巷道使用成型堆垛机命令格式。 /// public const string FormationPrefix = "HC"; /// /// 标准堆垛机巷道前缀(GW) /// /// /// 以 GW 开头的巷道使用标准堆垛机命令格式。 /// public const string StandardPrefixGW = "GW"; /// /// 标准堆垛机巷道前缀(CW) /// /// /// 以 CW 开头的巷道使用标准堆垛机命令格式。 /// public const string StandardPrefixCW = "CW"; /// /// 巷道前缀到命令类型的默认映射 /// /// /// Key: 巷道编码前缀 /// Value: 命令类型名称 /// public static readonly Dictionary DefaultRoadwayCommandMapping = new() { { FormationPrefix, StackerCraneCommandTypeEnum.Formation }, { StandardPrefixGW, StackerCraneCommandTypeEnum.Standard }, { StandardPrefixCW, StackerCraneCommandTypeEnum.Standard } }; } }