Administrator
2021-12-14 2e05579d876b10f5292b3a6ee537cbe0db0470ab
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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;
    }
      
}