panlili2024
2024-09-19 071a8328823a2861f93ce556a4da3e4119cab1a3
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
package com.hdl.sdk.ttl.HDLDeviceManger.Bean;
 
import com.hdl.sdk.ttl.HDLAppliances.HDLLogic.LogicMode;
 
import java.io.Serializable;
import java.util.Arrays;
 
/**
 * Created by djl on 2017/3/30.
 */
 
public class AppliancesInfo implements Serializable {
    private String deviceName;//设备名称
    private int bigType;//大类
    private int littleType;//小类
    private int ctrlCommand;//操作码
    private int ctrlBackCommand;//操作返回码
    private int stateCommand;//读取状态码
    private int stateBackCommand;//读取状态返回码
    private int channelNum;//回路号
    private int deviceSubnetID;//设备子网号
    private int deviceDeviceID;//设备号
    private int sourceSubnetID;//源子网号
    private int sourceDeviceID;//源设备号
    private Object curState;//当前状态
    private String remarks;//备注
    private String parentRemarks;//模块备注
    private byte[] arrCurState;//状态反馈记录数据
    private int deviceType;//设备类型
 
    private LogicMode logicMode;//逻辑模块特有
    private int physicsChannelNum;//RCU 灯光特有
 
    private int intCurState;
    private String deviceKey;
    private boolean isGetDeviceStateSuccess;
 
    public int getDeviceType() {
        return deviceType;
    }
 
    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }
 
    public int getPhysicsChannelNum() {
        return physicsChannelNum;
    }
 
    public void setPhysicsChannelNum(int physicsChannelNum) {
        this.physicsChannelNum = physicsChannelNum;
    }
 
    public byte[] getArrCurState() {
        return arrCurState;
    }
 
    public void setArrCurState(byte[] arrCurState) {
        this.arrCurState = arrCurState;
    }
 
    public String getParentRemarks() {
        return parentRemarks;
    }
 
    public void setParentRemarks(String parentRemarks) {
        this.parentRemarks = parentRemarks;
    }
 
    public Object getCurState() {
        return curState;
    }
 
    public void setCurState(Object curState) {
        this.curState = curState;
    }
 
    public int getDeviceSubnetID() {
        return deviceSubnetID;
    }
 
    public void setDeviceSubnetID(int deviceSubnetID) {
        this.deviceSubnetID = deviceSubnetID;
    }
 
    public int getDeviceDeviceID() {
        return deviceDeviceID;
    }
 
    public void setDeviceDeviceID(int deviceDeviceID) {
        this.deviceDeviceID = deviceDeviceID;
    }
 
    public int getSourceSubnetID() {
        return sourceSubnetID;
    }
 
    public void setSourceSubnetID(int sourceSubnetID) {
        this.sourceSubnetID = sourceSubnetID;
    }
 
    public int getSourceDeviceID() {
        return sourceDeviceID;
    }
 
    public void setSourceDeviceID(int sourceDeviceID) {
        this.sourceDeviceID = sourceDeviceID;
    }
 
    public int getLittleType() {
        return littleType;
    }
 
    public void setLittleType(int littleType) {
        this.littleType = littleType;
    }
 
    public int getBigType() {
        return bigType;
    }
 
    public void setBigType(int bigType) {
        this.bigType = bigType;
    }
 
    public int getChannelNum() {
        return channelNum;
    }
 
    public void setChannelNum(int channelNum) {
        this.channelNum = channelNum;
    }
 
    public String getRemarks() {
        return remarks;
    }
 
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
 
    public String getDeviceName() {
        return deviceName;
    }
 
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
 
    public int getCtrlCommand() {
        return ctrlCommand;
    }
 
    public void setCtrlCommand(int ctrlCommand) {
        this.ctrlCommand = ctrlCommand;
    }
 
    public int getCtrlBackCommand() {
        return ctrlBackCommand;
    }
 
    public void setCtrlBackCommand(int ctrlBackCommand) {
        this.ctrlBackCommand = ctrlBackCommand;
    }
 
    public int getStateCommand() {
        return stateCommand;
    }
 
    public void setStateCommand(int stateCommand) {
        this.stateCommand = stateCommand;
    }
 
    public int getStateBackCommand() {
        return stateBackCommand;
    }
 
    public void setStateBackCommand(int stateBackCommand) {
        this.stateBackCommand = stateBackCommand;
    }
 
    public LogicMode getLogicMode() {
        return logicMode;
    }
 
    public void setLogicMode(LogicMode logicMode) {
        this.logicMode = logicMode;
    }
 
    public int getIntCurState() {
        return intCurState;
    }
 
    public void setIntCurState(int intCurState) {
        this.intCurState = intCurState;
    }
 
    public boolean isGetDeviceStateSuccess() {
        return isGetDeviceStateSuccess;
    }
 
    public void setGetDeviceStateSuccess(boolean getDeviceStateSuccess) {
        isGetDeviceStateSuccess = getDeviceStateSuccess;
    }
 
    public String getDeviceKey() {
        deviceKey = this.bigType
                + "-" + this.littleType
                + "-" + this.deviceSubnetID
                + "-" + this.deviceDeviceID
                + "-" + this.channelNum;
 
        return deviceKey;
    }
 
    public void setDeviceKey(String deviceKey) {
        this.deviceKey = deviceKey;
    }
 
    @Override
    public String toString() {
        return "AppliancesInfo{" +
                "deviceName='" + deviceName + '\'' +
                ", bigType=" + bigType +
                ", littleType=" + littleType +
                ", ctrlCommand=" + ctrlCommand +
                ", ctrlBackCommand=" + ctrlBackCommand +
                ", stateCommand=" + stateCommand +
                ", stateBackCommand=" + stateBackCommand +
                ", channelNum=" + channelNum +
                ", deviceSubnetID=" + deviceSubnetID +
                ", deviceDeviceID=" + deviceDeviceID +
                ", sourceSubnetID=" + sourceSubnetID +
                ", sourceDeviceID=" + sourceDeviceID +
                ", curState=" + curState +
                ", remarks='" + remarks + '\'' +
                ", parentRemarks='" + parentRemarks + '\'' +
                ", arrCurState=" + Arrays.toString(arrCurState) +
                ", deviceType=" + deviceType +
                ", logicMode=" + logicMode +
                ", physicsChannelNum=" + physicsChannelNum +
                ", intCurState=" + intCurState +
                ", deviceKey='" + deviceKey + '\'' +
                '}';
    }
}