| 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
52
 | | package com.zy.asrs.wcs.core.model.enums; |  |   |  | /** |  |  * 四向穿梭车命令类型 |  |  */ |  | public enum ShuttleCommandModeType { |  |   |  |     NONE(-1, "未知类型"), |  |     MOVE(1, "移动"), |  |     IN_LIFT(2, "进提升机"), |  |     OUT_LIFT(3, "出提升机"), |  |     CHARGE_OPEN(4, "充电开"), |  |     CHARGE_CLOSE(5, "充电关"), |  |     PALLET_LIFT(6, "托盘顶升"), |  |     PALLET_DOWN(7, "托盘下降"), |  |     RESET(8, "复位"), |  |     ; |  |   |  |     public Integer id; |  |     public String desc; |  |   |  |     ShuttleCommandModeType(Integer id, String desc) { |  |         this.id = id; |  |         this.desc = desc; |  |     } |  |   |  |     public static ShuttleCommandModeType get(Integer id) { |  |         if (null == id) { |  |             return null; |  |         } |  |         for (ShuttleCommandModeType type : ShuttleCommandModeType.values()) { |  |             if (type.id.equals(id)) { |  |                 return type; |  |             } |  |         } |  |         return null; |  |     } |  |   |  |     public static ShuttleCommandModeType get(ShuttleCommandModeType type) { |  |         if (null == type) { |  |             return null; |  |         } |  |         for (ShuttleCommandModeType type1 : ShuttleCommandModeType.values()) { |  |             if (type1 == type) { |  |                 return type1; |  |             } |  |         } |  |         return null; |  |     } |  |   |  |   |  | } | 
 |