package com.pqs9900.pojo.DataInfo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/** @Author denghuajun
 * @Description //TODO 终端状态表
 * @Date  2019/3/15 10:21
 **/
@Table(name = "PQS_DEVSTATE")
public class DevState {
    @Id
    @Column(name = "DEVSTATE_INDEX")
    private String devStateIndex;//终端状态Guid
    @Column(name = "DEV_INDEX")
    private int devIndex;//（关联表pq_device）装置序号
    @Column(name = "TimeID")
    private Date timeId;//时间id
    @Column(name = "Type")
    private String type;//(关联表pqs_dicdata)装置状态类型 0：CPU利用率 1：内存利用率 2：存储卡总空间 3：存储卡未使用空间
    @Column(name = "Value")
    private Float value;//值

    public String getDevStateIndex() {
        return devStateIndex;
    }

    public void setDevStateIndex(String devStateIndex) {
        this.devStateIndex = devStateIndex;
    }

    public int getDevIndex() {
        return devIndex;
    }

    public void setDevIndex(int devIndex) {
        this.devIndex = devIndex;
    }

    public Date getTimeId() {
        return timeId;
    }

    public void setTimeId(Date timeId) {
        this.timeId = timeId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Float getValue() {
        return value;
    }

    public void setValue(Float value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "DevState{" +
                "devStateIndex='" + devStateIndex + '\'' +
                ", devIndex=" + devIndex +
                ", timeId=" + timeId +
                ", type='" + type + '\'' +
                ", value=" + value +
                '}';
    }
}
