package com.njcn.influx.pojo.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.njcn.common.utils.serializer.InstantDateSerializer;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import java.time.Instant;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 */
@Data
@Measurement(name = "power_quality_data")
public class PowerQualityData {

    @Column(name = "time")
    @JsonSerialize(using = InstantDateSerializer.class)
    private Instant time;

    @Column(name = "LineId")
    private String lineId;

    @Column(name = "Phase")
    private String phase;

    @Column(name = "Stat_Method")
    private String statMethod;

    /**
     * 频率
     */
    @Column(name = "Hz")
    private Double Hz;
    /**
     * 相电压总有效值
     */
    @Column(name = "PhV")
    private Double PhV;
    /**
     * 线电压总有效值
     */
    @Column(name = "PPV")
    private Double PPV;
    /**
     * 电流总有效值
     */
    @Column(name = "A")
    private Double A;
    /**
     * 频率偏差
     */
    @Column(name = "HzDev")
    private Double HzDev;
    /**
     * 相电压偏差
     */
    @Column(name = "PhVDev")
    private Double PhVDev;
    /**
     * 线电压偏差
     */
    @Column(name = "PPVDev")
    private Double PPVDev;
    /**
     * 正序、负序、零序电压
     */
    @Column(name = "SeqV")
    private Double SeqV;
    /**
     * 电压负序不平衡度
     */
    @Column(name = "ImbNgV")
    private Double ImbNgV;
    /**
     * 电压零序不平衡度
     */
    @Column(name = "ImbZroV")
    private Double ImbZroV;
    /**
     * 正序、负序、零序电流
     */
    @Column(name = "SeqA")
    private Double SeqA;
    /**
     * 电流负序不平衡度
     */
    @Column(name = "ImbNgA")
    private Double ImbNgA;
    /**
     * 电流零序不平衡度
     */
    @Column(name = "ImbZroA")
    private Double ImbZroA;
    /**
     * 相电压基波有效值
     */
    @Column(name = "HFundPhV")
    private Double HFundPhV;
    /**
     * 线电压基波有效值
     */
    @Column(name = "HFundPPV")
    private Double HFundPPV;
    /**
     * 相电压基波有效值相角
     */
    @Column(name = "FundPhVAng")
    private Double FundPhVAng ;
    /**
     * 线电压基波有效值相角
     */
    @Column(name = "FundPPVAng")
    private Double FundPPVAng;
    /**
     * 电流基波有效值
     */
    @Column(name = "FundA")
    private Double FundA ;
    /**
     * 电流基波相角
     */
    @Column(name = "FundAAng")
    private Double FundAAng;
    /**
     * 相电压谐波总畸变率
     */
    @Column(name = "ThdPhV")
    private Double ThdPhV;
    /**
     * 线电压谐波总畸变率
     */
    @Column(name = "ThdPPV")
    private Double ThdPPV;
    /**
     * 相电压总偶次谐波畸变率
     */
    @Column(name = "ThdEvnPhV")
    private Double ThdEvnPhV;
    /**
     * 线电压总偶次谐波畸变率
     */
    @Column(name = "ThdEvnPPV")
    private Double ThdEvnPPV;
    /**
     * 相电压总奇次谐波畸变率
     */
    @Column(name = "ThdOddPhV")
    private Double ThdOddPhV;
    /**
     * 线电压总奇次谐波畸变率
     */
    @Column(name = "ThdOddPPV")
    private Double ThdOddPPV;
    /**
     * 相电压谐波（间谐波）含有率序列
     */
    @Column(name = "HRPhV")
    private Double HRPhV;
    /**
     * 相电压谐波（间谐波）相角序列
     */
    @Column(name = "HRPhVAng")
    private Double HRPhVAng;
    /**
     * 线电压谐波（间谐波）含有率序列
     */
    @Column(name = "HRPPV")
    private Double HRPPV;
    /**
     * 线电压谐波（间谐波）相角序列
     */
    @Column(name = "HRPPVAng")
    private Double HRPPVAng;
    /**
     * 电流总谐波畸变率
     */
    @Column(name = "ThdA")
    private Double ThdA;
    /**
     * 电流总偶次谐波畸变率
     */
    @Column(name = "ThdEvnA")
    private Double ThdEvnA;
    /**
     * 电流总奇次谐波畸变率
     */
    @Column(name = "ThdOddA")
    private Double ThdOddA;
    /**
     * 谐波（间谐波）电流有效值
     */
    @Column(name = "HA")
    private Double HA;
    /**
     * 谐波（间谐波）电流相角序列
     */
    @Column(name = "HAAng")
    private Double HAAng;
    /**
     * 相电压电压变动幅度
     */
    @Column(name = "PhFluc")
    private Double PhFluc;
    /**
     * 线电压电压变动幅度
     */
    @Column(name = "PPFluc")
    private Double PPFluc;
    /**
     * 相电压电压变动频度
     */
    @Column(name = "PhFlucf")
    private Double PhFlucf;
    /**
     * 线电压电压变动频度
     */
    @Column(name = "PPFlucf")
    private Double PPFlucf;
    /**
     * 有功功率
     */
    @Column(name = "W")
    private Double W;
    /**
     * 无功功率
     */
    @Column(name = "VAr")
    private Double VAr;
    /**
     * 视在功率
     */
    @Column(name = "VA")
    private Double VA;
    /**
     * 基波有功功率
     */
    @Column(name = "FundW")
    private Double FundW;
    /**
     * 基波无功功率
     */
    @Column(name = "FundVAr")
    private Double FundVAr;
    /**
     * 基波视在功率
     */
    @Column(name = "FundVA")
    private Double FundVA;
    /**
     * 功率因数
     */
    @Column(name = "PF")
    private Double PF;
    /**
     * 位移功率因数
     */
    @Column(name = "DF")
    private Double DF;
    /**
     * 三相总有功功率
     */
    @Column(name = "TotW")
    private Double TotW;
    /**
     * 三相总无功功率
     */
    @Column(name = "TotVAr")
    private Double TotVAr;
    /**
     * 三相总视在功率
     */
    @Column(name = "TotVA")
    private Double TotVA;
    /**
     * 三相功率因数
     */
    @Column(name = "TotPF")
    private Double TotPF;
    /**
     * 三相位移功率因数
     */
    @Column(name = "TotDF")
    private Double TotDF;
    /**
     * 谐波有功功率序列
     */
    @Column(name = "HW")
    private Double HW;
    /**
     * 谐波无功功率序列
     */
    @Column(name = "HVAr")
    private Double HVAr;
    /**
     * 谐波视在功率序列
     */
    @Column(name = "HVA")
    private Double HVA;
    /**
     * 三相总谐波有功功率
     */
    @Column(name = "TotHW")
    private Double TotHW;
    /**
     * 三相总谐波无功功率
     */
    @Column(name = "TotHVAr")
    private Double TotHVAr;
    /**
     * 三相总谐波视在功率
     */
    @Column(name = "TotHVA")
    private Double TotHVA;
    /**
     * 相电压短时闪变
     */
    @Column(name = "PhPst")
    private Double PhPst;
    /**
     * 线电压短时闪变
     */
    @Column(name = "PPPst")
    private Double PPPst;
    /**
     * 相电压长时闪变
     */
    @Column(name = "PhPlt")
    private Double PhPlt;
    /**
     * 线电压长时闪变
     */
    @Column(name = "PPPlt")
    private Double PPPlt;
    /**
     * 最大需量
     */
    @Column(name = "MaxDemand")
    private Double MaxDemand;



}
