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 + '\'' +
|
'}';
|
}
|
}
|