package com.data;
|
|
import java.io.Serializable;
|
|
public class Rectifier_control implements Serializable{
|
private int num ;//,
|
private int dev_id ;//'É豸id',
|
private int remote_stop ;//'¹¤ÒÕ¡¢×Û¿ØÔ¶·½Í£Ö¹´ó¹¦ÂÊÕûÁ÷Æ÷',
|
private int emergency_stop ;//'¹¤ÒÕ¡¢×Û¿ØÔ¶·½½ô¼±Í£Ö¹´ó¹¦ÂÊÕûÁ÷Æ÷',
|
public int control_en;
|
|
public Rectifier_control(int dev_id) {
|
super();
|
this.dev_id = dev_id;
|
}
|
public int getNum() {
|
return num;
|
}
|
public void setNum(int num) {
|
this.num = num;
|
}
|
public int getDev_id() {
|
return dev_id;
|
}
|
public void setDev_id(int dev_id) {
|
this.dev_id = dev_id;
|
}
|
public int getRemote_stop() {
|
return remote_stop;
|
}
|
public void setRemote_stop(int remote_stop) {
|
this.remote_stop = remote_stop;
|
if(this.remote_stop>0) {
|
this.control_en=1;
|
}
|
}
|
public int getEmergency_stop() {
|
return emergency_stop;
|
}
|
public void setEmergency_stop(int emergency_stop) {
|
this.emergency_stop = emergency_stop;
|
if(this.remote_stop>0) {
|
this.control_en=1;
|
}
|
}
|
|
public int getControl_en() {
|
return control_en;
|
}
|
public void setControl_en(int control_en) {
|
this.control_en = control_en;
|
}
|
@Override
|
public String toString() {
|
return "Rectifier_control [num=" + num + ", dev_id=" + dev_id + ", remote_stop=" + remote_stop
|
+ ", emergency_stop=" + emergency_stop + "]";
|
}
|
//ÖØÖÃ
|
public void reset() {
|
this.remote_stop=0;
|
this.emergency_stop=0;
|
}
|
|
}
|