panlili2024
2024-11-11 145de2dcd3124f236e7d06bcdee17c7be08048b1
HDL_TTLSDK485/src/main/java/com/hdl/sdk/ttl/HDLDeviceManger/Bean/AppliancesInfo.java
@@ -18,37 +18,23 @@
    private int stateCommand;//读取状态码
    private int stateBackCommand;//读取状态返回码
    private int channelNum;//回路号
    private int deviceIndex;//序列号
    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 int port;
//    private String ipAddress;
    private LogicMode logicMode;//逻辑模块特有
    private int physicsChannelNum;//RCU 灯光特有
//    private byte[] feedbackState;//状态反馈记录数据 20190729新增
    private int intCurState;
    private String deviceKey;
//    public int getPort() {
//        return port;
//    }
//
//    public void setPort(int port) {
//        this.port = port;
//    }
//
//    public String getIpAddress() {
//        return ipAddress;
//    }
//
//    public void setIpAddress(String ipAddress) {
//        this.ipAddress = ipAddress;
//    }
    private boolean isGetDeviceStateSuccess;
    public int getDeviceType() {
        return deviceType;
@@ -106,6 +92,22 @@
        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;
    }
@@ -128,6 +130,14 @@
    public void setChannelNum(int channelNum) {
        this.channelNum = channelNum;
    }
    public int getDeviceIndex() {
        return deviceIndex;
    }
    public void setDeviceIndex(int deviceIndex) {
        this.deviceIndex = deviceIndex;
    }
    public String getRemarks() {
@@ -194,22 +204,21 @@
        this.intCurState = intCurState;
    }
//    public byte[] getFeedbackState() {
//        return feedbackState;
//    }
//
//    public void setFeedbackState(byte[] feedbackState) {
//        this.feedbackState = feedbackState;
//    }
    public boolean isGetDeviceStateSuccess() {
        return isGetDeviceStateSuccess;
    }
    public void setGetDeviceStateSuccess(boolean getDeviceStateSuccess) {
        isGetDeviceStateSuccess = getDeviceStateSuccess;
    }
    public String getDeviceKey() {
        if (deviceKey == null) {
            deviceKey = "K" + this.bigType
                    + "-" + this.littleType
                    + "-" + this.deviceSubnetID
                    + "-" + this.deviceDeviceID
                    + "-" + this.channelNum;
        }
        deviceKey = this.bigType
                + "-" + this.littleType
                + "-" + this.deviceSubnetID
                + "-" + this.deviceDeviceID
                + "-" + this.channelNum;
        return deviceKey;
    }
@@ -228,17 +237,21 @@
                ", stateCommand=" + stateCommand +
                ", stateBackCommand=" + stateBackCommand +
                ", channelNum=" + channelNum +
                ", deviceIndex=" + deviceIndex +
                ", deviceSubnetID=" + deviceSubnetID +
                ", deviceDeviceID=" + deviceDeviceID +
                ", sourceSubnetID=" + sourceSubnetID +
                ", sourceDeviceID=" + sourceDeviceID +
                ", curState=" + curState +
                ", remarks='" + remarks + '\'' +
                ", parentRemarks='" + parentRemarks + '\'' +
//                ", arrCurState=" + Arrays.toString(arrCurState) +
                ", arrCurState=" + Arrays.toString(arrCurState) +
                ", deviceType=" + deviceType +
//                ", port=" + port +
//                ", ipAddress='" + ipAddress + '\'' +
                ", logicMode=" + logicMode +
                ", physicsChannelNum=" + physicsChannelNum +
                ", intCurState=" + intCurState +
                ", deviceKey='" + deviceKey + '\'' +
                ", isGetDeviceStateSuccess=" + isGetDeviceStateSuccess +
                '}';
    }
}