| | |
| | | |
| | | public enum RgvTaskModeType { |
| | | |
| | | NONE((short) 0, "无"), |
| | | PICK((short) 1, "取货"), |
| | | RELEASE((short) 2, "放货"), |
| | | PICK_RELEASE((short) 3, "取放货"), |
| | | MOVE((short) 4, "移动(发工位1任务即可)"), |
| | | NONE(0), // 无 |
| | | FETCH(1), // 取货 |
| | | PUT(2), // 放货 |
| | | FETCH_PUT_ALL(1), // 取放货 |
| | | FETCH_PUT1(8), // 取放货 |
| | | FETCH_PUT2(9), // 取放货 |
| | | X_MOVE(4), // 站位移转 |
| | | // Y_MOVE(5), // 站位移转 |
| | | // XY_MOVE(6), // 站位移转 |
| | | GO_ORIGIN(7), // 回原点 |
| | | // BACK_ORIGIN(8), // 回反原点 |
| | | // CLEAR(9), // 清错 |
| | | ; |
| | | public Short id; |
| | | public String desc; |
| | | |
| | | RgvTaskModeType(Short id, String desc) { |
| | | public Integer id; |
| | | RgvTaskModeType(Integer id) { |
| | | this.id = id; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | |
| | | public static RgvTaskModeType get(Short id) { |
| | | if (null == id) { |
| | | return null; |
| | | } |
| | | for (RgvTaskModeType type : RgvTaskModeType.values()) { |
| | | if (type.id.equals(id)) { |
| | | if (type.id.equals(id.intValue())) { |
| | | return type; |
| | | } |
| | | } |
| | |
| | | if (null == type) { |
| | | return null; |
| | | } |
| | | for (RgvTaskModeType type1 : RgvTaskModeType.values()) { |
| | | if (type1 == type) { |
| | | return type1; |
| | | for (RgvTaskModeType rgvTaskModeType : RgvTaskModeType.values()) { |
| | | if (rgvTaskModeType == type) { |
| | | return rgvTaskModeType; |
| | | } |
| | | } |
| | | return null; |