package com.yeejoin.amos.boot.module.jxiop.biz.constants;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;

public class CommonConstans {
    //光伏发电量系数
//    public static final Double pvGenPoweActor = 0.00001;
//    public static final Double pvGenPoweActorDay = 0.1;
//    public static final Double pvGenPoweActornew = 0.0001;
    public static final Double pvGenPoweActornew = 0.000001;

    public static final Double pvGenPoweActor = 0.000001;
    public static final Double pvGenPoweActorDay = 1.0;
    public static final Double pvGenPoweActorYear = 0.0001;
    public static final Double pvGenPoweActorCurrentData = 0.0001;
    //    风电站：
//            （日/月/年）发电量=场站所有风机（日/月/年）发电量总和
//            装机容量=场站所有风机装机容量总和
//
//    光伏站：
//            （日/月/年）发电量=场站所有逆变器（日/月/年）发电量总和
//            装机容量=场站所有逆变器装机容量总和
//
//    通用：
//    发电量完成率=（月/年）发电量/（月/年）发电量指标
//    小时数完成率=（月/年）可利用小时/（月/年）可利用小时数指标
//    可利用小时(h)=（日/月/年）发电量（万kW·h）/装机容量（万kW）
    // 二氧化碳
    public static final Double carbonDioxide = 0.997 * 10;
    //标准煤
    public static final Double standardCoal = 0.4 * 10;
    //炭粉尘减排量
    public static final Double toner = 0.272 * 10;
    //二氧化硫减排量
    public static final Double sulfurDioxide = 0.03 * 10;
    //氮氧化物减排量
    public static final Double oxynitride = 0.015 * 10;
    //千克转吨
    public static final Double kgToT = 0.001;

    //吨转万吨
    public static final Double tToWT = 0.0001;
    //万Kwh转MV
    public static final Integer wkwhToMv = 10;
    //kw转MV
    public static final Double kwToMv = 0.001;

//    正常运行	发电状态=1
//    告警运行	报警状态=1
//    正常停机	停机状态=1
//    故障停机	故障状态=1
//    限功率
//    待机状态	待机状态=1
//    维护状态	维护状态=1
//    通讯中断

    public static final HashMap<String, String> fanStatus = new HashMap<String, String>() {
        {
            put("发电状态", "正常运行");
            put("报警状态", "报警运行");
            put("停机状态", "停机状态");
            put("故障状态", "故障状态");
            put("待机状态", "待机状态");
            put("维护状态", "维护状态");
            put("限功率", "限功率");
            put("通讯中断", "通讯中断");
        }
    };
//    正常运行	运行=1
//    正常停机	停机=1
//    限功率	限额运行=1
//    限电停机	降额运行=1
//    告警运行	告警运行=1
//    故障停机	故障停机=1
//    待机状态	待机=1
//    通讯中断	通讯故障=1

    public static final HashMap<String, String> pvStatus = new HashMap<String, String>() {

        {
            put("运行", "正常运行");
            put("停机", "正常停机");
            put("限额运行", "限功率");
            put("降额运行", "限电停机");
            put("告警运行", "告警运行");
            put("故障停机", "故障停机");
            put("待机", "待机状态");
            put("通讯故障", "通讯中断");
        }

    };
    //es EquipIndexName 查绚关键字
    public static final String QueryStringEquipmentIndexName = "equipmentIndexName.keyword";
    //es gatewayId 查绚关键字
    public static final String QueryStringGateWayId = "gatewayId.keyword";
    public static final String QueryStringFrontMoudle = "frontModule.keyword";
    public static final String QueryStringSystemType = "systemType";
    public static final String QueryStringEquipmentNumber = "equipmentNumber";
    public static final String QueryStringValue = "value";
    public static final String QueryStringValueKeyword = "value.keyword";
    public static final String QueryStringDataType = "dataType";
    public static final String QueryStringDisplayName = "displayName";
    public static final String QueryStringIsAlarm = "isAlarm";
    public static final String Twodecimalplaces = "%.2f";
    public static final String Fourdecimalplaces = "%.4f";
    public static final String QueryStringFrontMoudleNotKeyWord = "frontModule";
    //泰和的发电量数据
    public static final List<String> taiHeGenIndicator = new ArrayList<>(Arrays.asList("泰和日发电量总和", "泰和月发电量总和", "泰和年发电量总和"));
    public static final String taiHeGenIndicatorDay = "泰和日发电量总和";
    public static final String taiHeGenIndicatorMonth = "泰和月发电量总和";
    public static final String taiHeGenIndicatorYear = "泰和年发电量总和";


    public static final String taiheActivePowerPoint = "南瑞光差保护_313P";
    public static final String taiheIrradiationPonit = "WTX-801_25_WTX-801_总辐射";
    public static final String xiazaoActivePowerPoint = "220kV夏雩线212线路测控装置PCS-9705TA有功功率一次值";
    public static final String xiazaoWindSpeedrPoint = "瞬时风速";

    //------------------监盘服务改造新增常量开始------------------------------
    //日发电量
    public static final String DAY_POWER_GENERATION = "日发电量总和";
    //月发电量
    public static final String MONTH_POWER_GENERATION = "月发电量总和";
    //年发电量
    public static final String YEAR_POWER_GENERATION = "年发电量总和";
    //年发电量完成率
    public static final String YEAR_GEN_ATTAINMENT_RATE = "年计划完成率";
    //年利用小时数
    public static final String YEAR_GEN_HOURS = "年利用小时数";
    public static final String WIND_SPEED_THIRTY_SECONDS = "总30秒平均风速";
    public static final String TOTAL_RADIATION = "总辐照度";
    public static final String TOTAL_RADIATION_SUM = "总累计辐照度";
    public static final String ACTIVE_POWER = "有功功率";


    //------------------监盘服务改造新增常量结束------------------------------
}
