自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-09-13 d90e160a7659b21dbfd6bb225b00b86a0a68f24c
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
53
54
package com.zy.core.enums;
 
public enum SteTaskModeType {
 
    INIT(0, "初始"),    // 初始
    OUT_LEFT(1, "左出库"),    // 左出库
    OUT_RIGHT(2, "右出库"),    // 右出库
    IN_LEFT(3, "左入库"),    // 左入库
    IN_RIGHT(4, "右入库"),    // 右入库
    MOVE_LEFT(5, "左移库"),    // 左移库
    MOVE_RIGHT(6, "右移库"),    // 右移库
    GO_ORIGIN(7, "回原点"),    // 回原点
    BACK_ORIGIN(8, "回反原点"),      // 回反原点
    TO_A(9, "A点"),        // A点
    TO_B(10, "B点"),       // B点
    FIT_LEFT(11, "左搬移"),   // 左搬移
    FIT_RIGHT(12, "右搬移"),      // 右搬移
    CHARGE(13, "充电"),         // 充电
    CHECK_LEFT(14, "左盘点"),     // 左盘点
    CHECK_RIGHT(15, "右盘点"),    // 右盘点
    ;
 
    public Integer id;
    public String desc;
    SteTaskModeType(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }
 
    public static SteTaskModeType get(Short id) {
        if (null == id) {
            return null;
        }
        for (SteTaskModeType type : SteTaskModeType.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return null;
    }
 
    public static SteTaskModeType get(SteTaskModeType type) {
        if (null == type) {
            return null;
        }
        for (SteTaskModeType crnTaskModeType : SteTaskModeType.values()) {
            if (crnTaskModeType == type) {
                return crnTaskModeType;
            }
        }
        return null;
    }
 
}