package com.njcn.csdevice.pojo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author xy
 */ //台账信息
@Data
public class DeviceInfo implements Serializable {

    @ApiModelProperty("终端索引")
    private String id;

    @ApiModelProperty("终端mac")
    private String ip;

    @ApiModelProperty("终端型号")
    private String devType;

    @ApiModelProperty("终端名称")
    private String name;

    @ApiModelProperty("前置机序号")
    private Integer node;

    @ApiModelProperty("开启的进程数")
    private Integer maxProcessNum;

    @ApiModelProperty("对时启动标志")
    private boolean rightTime;

    @ApiModelProperty("终端日志等级")
    private String devLogLevel;

    @ApiModelProperty("监测点集合")
    private List<MonitorInfo> monitorData;

    //终端下的监测点信息
    @Data
    public static class MonitorInfo implements Serializable {

        @ApiModelProperty("监测点索引")
        private String id;

        @ApiModelProperty("名称")
        private String name;

        @ApiModelProperty("监测点逻辑号")
        private String lineNo;

        @ApiModelProperty("监测点电压等级")
        private String voltageLevel;

        @ApiModelProperty("监测点运行状态 0：运行；1：检修；2：停运；3：调试；4：退运")
        private Integer status;

        @ApiModelProperty("监测点接线方式 0-星型 1-角型 2-V型")
        private String ptType;

        @ApiModelProperty("装置id")
        private String deviceId;

        @ApiModelProperty("pt1")
        private Double pt1;

        @ApiModelProperty("pt2")
        private Double pt2;

        @ApiModelProperty("ct1")
        private Double ct1;

        @ApiModelProperty("ct2")
        private Double ct2;

        @ApiModelProperty("监测点日志等级")
        private String lineLogLevel;
    }

}