|
|
@ -145,19 +145,22 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
public enum MonitorProcessMessageType {
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "连接控制器"),
|
|
|
|
CONNECT_CONTROL_CMD(10, "CONNECT_CONTROL_CMD", "connectControlService", "连接控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "断开控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "DISCONNECT_CONTROL_CMD", "disconnectControlService", "断开控制器"),
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "亮灯命令"),
|
|
|
|
LIGHT_ON_CMD(30, "LIGHT_ON_CMD", "lightOnService", "亮灯命令"),
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "灭灯命令"),
|
|
|
|
LIGHT_OFF_CMD(40, "LIGHT_OFF_CMD", "", "灭灯命令"),
|
|
|
|
INTERFACE_SIGNAL_CMD(50, "INTERFACE_SIGNAL_CMD", "发送给界面actor通过websocket返回");
|
|
|
|
CONTROL_SIGNAL_CMD(50, "CONTROL_SIGNAL_CMD", "controlSignalService", "控制器反馈信号"),
|
|
|
|
|
|
|
|
INTERFACE_SIGNAL_CMD(60, "INTERFACE_SIGNAL_CMD", "", "发送给界面actor通过websocket返回");
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private String callClass;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
MonitorProcessMessageType(int value, String code, String description) {
|
|
|
|
MonitorProcessMessageType(int value, String code, String callClass, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -169,6 +172,10 @@ public class PtlPcnEnumUtil {
|
|
|
|
return code;
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
|
|
|
return callClass;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -188,17 +195,19 @@ public class PtlPcnEnumUtil {
|
|
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
public enum InterfaceSignalMessageType {
|
|
|
|
public enum InterfaceSignalMessageType {
|
|
|
|
CONNECT_CONTROL_CMD(10, "111111", "连接控制器"),
|
|
|
|
CONNECT_CONTROL_CMD(10, "111111", "connectControlService", "连接控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "222222", "断开控制器"),
|
|
|
|
DISCONNECT_CONTROL_CMD(20, "222222", "disconnectControlService", "断开控制器"),
|
|
|
|
LIGHT_ON_CMD(30, "333333", "亮灯命令");
|
|
|
|
LIGHT_ON_CMD(30, "333333", "lightOnService", "亮灯命令");
|
|
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
private int value;
|
|
|
|
private String code;
|
|
|
|
private String code;
|
|
|
|
|
|
|
|
private String callClass;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
|
|
InterfaceSignalMessageType(int value, String code, String description) {
|
|
|
|
InterfaceSignalMessageType(int value, String code, String callClass, String description) {
|
|
|
|
this.value = value;
|
|
|
|
this.value = value;
|
|
|
|
this.code = code;
|
|
|
|
this.code = code;
|
|
|
|
|
|
|
|
this.callClass = callClass;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -206,6 +215,10 @@ public class PtlPcnEnumUtil {
|
|
|
|
return value;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getCallClass() {
|
|
|
|
|
|
|
|
return callClass;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
public String getCode() {
|
|
|
|
return code;
|
|
|
|
return code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|