package com.njcn.csharmonic.constant;


import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

/**
 * 常量类
 * @author qijian
 * @version 1.0.0
 * @date 2022年11月11日 09:56
 */
public interface HarmonicConstant {
    /***
     * 组态Json文件oss路径
     */
    String CONFIGURATIONPATH = "configuration/";
    /***
     * 组态Json文件oss文件名
     */
    String CONFIGURATIONNAME = "configuration.json";

    String DATA_V = "data_v";

    String DATA_I = "data_i";

    String DATA_HARM_RATE_V = "data_harmrate_v";

    String DATA_HARM_RATE_I = "data_harmrate_i";

    String DATA_HARM_PHASIC_V = "data_harmphasic_v";

    String DATA_HARM_PHASIC_I = "data_harmphasic_i";

    String DATA_IN_HARM_V = "data_inharm_v";

    String DATA_IN_HARM_I = "data_inharm_i";

    String DATA_HARM_POWER_P = "data_harmpower_p";

    String DATA_HARM_POWER_Q = "data_harmpower_q";

    String DATA_HARM_POWER_S = "data_harmpower_s";

    String DATA_FLICKER = "data_flicker";

    String DATA_FLUC = "data_fluc";

    String DATA_PLT = "data_plt";

    String EPD_DATA = "epd_data";

    String PQD_DATA = "pqd_data";

    String BMD_DATA = "bmd_data";

    String EVT_DATA = "evt_data";

    String ALM_DATA = "alm_data";

    String STS_DATA = "sts_data";

    String DI_DATA = "di_data";

    String DO_DATA = "do_data";

    String PARM_DATA = "parm_data";

    String SET_DATA = "set_data";

    String INSET_DATA = "inset_data";

    String CTRL_DATA = "ctrl_data";

    Set<String> POWER_LIST = new HashSet<>(Arrays.asList(
            "电网有功功率", "电网无功功率", "电网视在功率", "负载有功功率",
            "负载无功功率", "负载视在功率", "有功功率", "无功功率",
            "视在功率", "基波有功功率", "基波无功功率",
            "基波视在功率", "三相总有功功率", "三相总无功功率",
            "三相总视在功率","相电压总有效值","线电压总有效值","相电压基波有效值","线电压基波有效值","电压正序分量"
    ));
}
