package com.njcn.gather.tools.comtrade.comparewave.core.model;

import lombok.Builder;
import lombok.Data;

/**
 * 门限配置封装类
 * <p>用于传递所有门限值到结果比较方法</p>
 * <p>包含电能质量检测中各项参数的阈值配置</p>
 *
 * @author hongawen
 * @since 1.0
 */
@Data
@Builder
public class ThresholdConfig {
    /**
     * 电压有效值门限
     */
    private double voltageRmsThreshold = 0.01 * 220;

    /**
     * 电流有效值门限
     */
    private double currentRmsThreshold = 0.05 * 5;

    /**
     * 谐波电压门限
     */
    private double harmonicVoltageThreshold = 0.01 * 220;

    /**
     * 谐波电流门限
     */
    private double harmonicCurrentThreshold = 0.03 * 5;

    /**
     * THD电压门限
     */
    private double thdVoltageThreshold = 0.1 * 220;

    /**
     * THD电流门限
     */
    private double thdCurrentThreshold = 0.1 * 5;

    /**
     * 有功功率门限
     */
    private double activePowerThreshold = 0.01;

    /**
     * 无功功率门限
     */
    private double reactivePowerThreshold = 0.01;

    /**
     * 视在功率门限
     */
    private double apparentPowerThreshold = 0.01;

    /**
     * 功率因数门限
     */
    private double powerFactorThreshold = 0.001;

    /**
     * 电压序分量门限
     */
    private double sequenceVoltageThreshold = 0.01;

    /**
     * 电流序分量门限
     */
    private double sequenceCurrentThreshold = 0.001;

    /**
     * 不平衡度门限
     */
    private double unbalanceThreshold = 0.01;

    /**
     * 频率门限
     */
    private double frequencyThreshold = 0.001;

    /**
     * 频率偏差门限
     */
    private double frequencyDeviationThreshold = 0.001;
}