| | |
| | | |
| | | /** |
| | | * 四向穿梭车 |
| | | * Wm200 小车忙状态位 |
| | | */ |
| | | public enum ShuttleStatusType { |
| | | |
| | | IDLE((short)0, "空闲"), |
| | | BUSY((short)1, "忙"), |
| | | IDLE(1, "空闲"), |
| | | BUSY(0, "忙"), |
| | | ; |
| | | |
| | | public Short id; |
| | | public Integer id; |
| | | public String desc; |
| | | |
| | | ShuttleStatusType(Short id,String desc) { |
| | | ShuttleStatusType(Integer id,String desc) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static ShuttleStatusType get(Short id) { |
| | | public static ShuttleStatusType get(Integer id) { |
| | | if (null == id) { |
| | | return null; |
| | | } |
| | | for (ShuttleStatusType type : ShuttleStatusType.values()) { |
| | | if (type.id.equals(id.shortValue())) { |
| | | if (type.id == id) { |
| | | return type; |
| | | } |
| | | } |