package com.usky.ems.domain;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * TDengine数据实体
 *
 * @author system
 * @since 2024-01-01
 */
@Data
public class TdengineData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 时间戳
     */
    private Timestamp ts;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * A相电压
     */
    private Double voltageA;

    /**
     * B相电压
     */
    private Double voltageB;

    /**
     * C相电压
     */
    private Double voltageC;

    /**
     * A相电流
     */
    private Double currentA;

    /**
     * B相电流
     */
    private Double currentB;

    /**
     * C相电流
     */
    private Double currentC;

    /**
     * A相有功功率
     */
    private Double activepowera;

    /**
     * B相有功功率
     */
    private Double activepowerb;

    /**
     * C相有功功率
     */
    private Double activepowerc;

    /**
     * 总有功功率
     */
    private Double totalActivePower;

    /**
     * 总功率因数
     */
    private Double totalPowerFactor;

    /**
     * 累计正向有功电量
     */
    private Double totalActiveEnergyF;

    /**
     * 累计反向有功电量
     */
    private Double totalActiveEnergyR;

    /**
     * 累计正向无功电量
     */
    private Double totalReactiveEnergyF;

    /**
     * 累计反向无功电量
     */
    private Double totalReactiveEnergyR;
}
