package com.zy.core.enums;
|
|
/**
|
* 四向穿梭车
|
* Wm207 PLC输入状态
|
*/
|
public enum ShuttlePlcInputStatusType {
|
|
LIFT_STATUS(Byte.parseByte("6"), "托盘顶部传感器状态")
|
;
|
|
public byte id;
|
public String desc;
|
|
ShuttlePlcInputStatusType(byte id, String desc) {
|
this.id = id;
|
this.desc = desc;
|
}
|
|
public static ShuttlePlcInputStatusType get(byte id) {
|
for (ShuttlePlcInputStatusType type : ShuttlePlcInputStatusType.values()) {
|
if (type.id == id) {
|
return type;
|
}
|
}
|
return null;
|
}
|
|
public static ShuttlePlcInputStatusType get(ShuttlePlcInputStatusType type) {
|
if (null == type) {
|
return null;
|
}
|
for (ShuttlePlcInputStatusType shuttlePlcInputStatusType : ShuttlePlcInputStatusType.values()) {
|
if (shuttlePlcInputStatusType == type) {
|
return shuttlePlcInputStatusType;
|
}
|
}
|
return null;
|
}
|
|
}
|