whyclj
2020-12-31 29dc7293933a34a1d1a794c107fd37b956fc426f
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.data;
 
import com.data.Comm.Central_Data_ComBase;
 
public class Central_Control {
    
    private int dev_id;                            //'É豸id',
    private int op_cmd;                            //'ÃüÁî¿ØÖÆ',
    private int switch_close_1st_2500A;            //'1ºÅ2500A½øÏ߯Á¿ª¹ØºÏÕ¢',
    private int switch_open_1st_2500A;            //'1ºÅ2500A½øÏ߯Á¿ª¹Ø·ÖÕ¢',
    private int switch_close_2st_2500A;            //'2ºÅ2500A½øÏ߯Á¿ª¹ØºÏÕ¢',
    private int switch_open_2st_2500A;            //'2ºÅ2500A½øÏ߯Á¿ª¹Ø·ÖÕ¢',
    private int switch_close_bus_screen;        //'ĸÁªÆÁ¿ª¹ØºÏÕ¢',
    private int switch_open_bus_screen;            //'ĸÁªÆÁ¿ª¹Ø·ÖÕ¢',
    private int switch_close_1st_2500A_load;    //'1ºÅ2500A¸ºÔØÆÁ¿ª¹ØºÏÕ¢',
    private int switch_open_1st_2500A_load;        //'1ºÅ2500A¸ºÔØÆÁ¿ª¹Ø·ÖÕ¢',
    private int switch_close_2st_2500A_load;    //'2ºÅ2500A¸ºÔØÆÁ¿ª¹ØºÏÕ¢',
    private int switch_open_2st_2500A_load;        //'2ºÅ2500A¸ºÔØÆÁ¿ª¹Ø·ÖÕ¢',
    
    public boolean control_en = false;
    
    public Central_Control() {
        // TODO Auto-generated constructor stub
    }
    
    public Central_Control(int dev_id) {
        this.dev_id = dev_id;
    }
    
    public int getDev_id() {
        return dev_id;
    }
    public void setDev_id(int dev_id) {
        this.dev_id = dev_id;
    }
    public int getOp_cmd() {
        return op_cmd;
    }
    public void setOp_cmd(int op_cmd) {
        control_en = false;
        this.op_cmd = op_cmd;
        switch(this.op_cmd) {
            case Central_Data_ComBase.CMD_SwitchClose_1st:
            case Central_Data_ComBase.CMD_SwitchOpen_1st:
            case Central_Data_ComBase.CMD_SwitchClose_2st:
            case Central_Data_ComBase.CMD_SwitchOpen_2st:
            case Central_Data_ComBase.CMD_SwitchClose_3st:
            case Central_Data_ComBase.CMD_SwitchOpen_3st:
            case Central_Data_ComBase.CMD_SwitchClose_4st:
            case Central_Data_ComBase.CMD_SwitchOpen_4st:
            case Central_Data_ComBase.CMD_SwitchClose_5st:
            case Central_Data_ComBase.CMD_SwitchOpen_5st:{
                //ÐèÒª½øÐÐÔ¶³Ì¿ØÖƲÙ×÷
                control_en = true;
            }
        }
    }
    public int getSwitch_close_1st_2500A() {
        return switch_close_1st_2500A;
    }
    public void setSwitch_close_1st_2500A(int switch_close_1st_2500A) {
        this.switch_close_1st_2500A = switch_close_1st_2500A;
    }
    public int getSwitch_open_1st_2500A() {
        return switch_open_1st_2500A;
    }
    public void setSwitch_open_1st_2500A(int switch_open_1st_2500A) {
        this.switch_open_1st_2500A = switch_open_1st_2500A;
    }
    public int getSwitch_close_2st_2500A() {
        return switch_close_2st_2500A;
    }
    public void setSwitch_close_2st_2500A(int switch_close_2st_2500A) {
        this.switch_close_2st_2500A = switch_close_2st_2500A;
    }
    public int getSwitch_open_2st_2500A() {
        return switch_open_2st_2500A;
    }
    public void setSwitch_open_2st_2500A(int switch_open_2st_2500A) {
        this.switch_open_2st_2500A = switch_open_2st_2500A;
    }
    public int getSwitch_close_bus_screen() {
        return switch_close_bus_screen;
    }
    public void setSwitch_close_bus_screen(int switch_close_bus_screen) {
        this.switch_close_bus_screen = switch_close_bus_screen;
    }
    public int getSwitch_open_bus_screen() {
        return switch_open_bus_screen;
    }
    public void setSwitch_open_bus_screen(int switch_open_bus_screen) {
        this.switch_open_bus_screen = switch_open_bus_screen;
    }
    public int getSwitch_close_1st_2500A_load() {
        return switch_close_1st_2500A_load;
    }
    public void setSwitch_close_1st_2500A_load(int switch_close_1st_2500A_load) {
        this.switch_close_1st_2500A_load = switch_close_1st_2500A_load;
    }
    public int getSwitch_open_1st_2500A_load() {
        return switch_open_1st_2500A_load;
    }
    public void setSwitch_open_1st_2500A_load(int switch_open_1st_2500A_load) {
        this.switch_open_1st_2500A_load = switch_open_1st_2500A_load;
    }
    public int getSwitch_close_2st_2500A_load() {
        return switch_close_2st_2500A_load;
    }
    public void setSwitch_close_2st_2500A_load(int switch_close_2st_2500A_load) {
        this.switch_close_2st_2500A_load = switch_close_2st_2500A_load;
    }
    public int getSwitch_open_2st_2500A_load() {
        return switch_open_2st_2500A_load;
    }
    public void setSwitch_open_2st_2500A_load(int switch_open_2st_2500A_load) {
        this.switch_open_2st_2500A_load = switch_open_2st_2500A_load;
    }
    
    @Override
    public String toString() {
        return "Central_Control [dev_id=" + dev_id + ", op_cmd=" + op_cmd + ", switch_close_1st_2500A="
                + switch_close_1st_2500A + ", switch_open_1st_2500A=" + switch_open_1st_2500A
                + ", switch_close_2st_2500A=" + switch_close_2st_2500A + ", switch_open_2st_2500A="
                + switch_open_2st_2500A + ", switch_close_bus_screen=" + switch_close_bus_screen
                + ", switch_open_bus_screen=" + switch_open_bus_screen + ", switch_close_1st_2500A_load="
                + switch_close_1st_2500A_load + ", switch_open_1st_2500A_load=" + switch_open_1st_2500A_load
                + ", switch_close_2st_2500A_load=" + switch_close_2st_2500A_load + ", switch_open_2st_2500A_load="
                + switch_open_2st_2500A_load + "]";
    }
}