自动化立体仓库 - WCS系统
*
lsh
6 天以前 f287ab5ee6b9938e0d48cdb62c05078bdec463d8
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
package com.zy.core.enums;
 
public enum RgvTaskModeType {
 
    NONE(0),    // 无
    FETCH(1),    // 取货 (空板)单取
    PUT(2),    // 放货 (空板)单放
    FETCH_PUT(3),    // 取放货
    X_MOVE(4),    // 站位移转
    FETCH_5(5),    // (空板)满取
    PUT_6(6),    // (空板)满放
//    GO_ORIGIN(7),    // 回原点
//    BACK_ORIGIN(8),      // 回反原点
//    CLEAR(9),       // 清错
    ;
 
    public Integer id;
    RgvTaskModeType(Integer id) {
        this.id = id;
    }
 
    public static RgvTaskModeType get(Short id) {
        if (null == id) {
            return null;
        }
        for (RgvTaskModeType type : RgvTaskModeType.values()) {
            if (type.id.equals(id.intValue())) {
                return type;
            }
        }
        return null;
    }
 
    public static RgvTaskModeType get(RgvTaskModeType type) {
        if (null == type) {
            return null;
        }
        for (RgvTaskModeType rgvTaskModeType : RgvTaskModeType.values()) {
            if (rgvTaskModeType == type) {
                return rgvTaskModeType;
            }
        }
        return null;
    }
 
}