package com.njcn.gather.tool.addledger.pojo.constant;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * 数据台账常量。
 */
public final class AddLedgerConst {

    private AddLedgerConst() {
    }

    public static final String ROOT_PARENT_ID = "0";

    public static final int LEVEL_ENGINEERING = 0;
    public static final int LEVEL_PROJECT = 1;
    public static final int LEVEL_EQUIPMENT = 2;
    public static final int LEVEL_LINE = 3;

    public static final int STATE_DELETED = 0;
    public static final int STATE_NORMAL = 1;

    public static final int EQUIPMENT_RUN_STATUS_DELETED = 0;
    public static final int EQUIPMENT_RUN_STATUS_OFFLINE = 1;
    public static final int EQUIPMENT_STATUS_UNREGISTERED = 1;
    public static final int EQUIPMENT_PROCESS_RUNNING = 4;
    public static final int ENABLE = 1;
    public static final int DISABLE = 0;

    public static final int LINE_RUN_STATUS_RUNNING = 0;
    public static final int LINE_INTERVAL_DEFAULT = 1;
    public static final String LOG_LEVEL_WARN = "WARN";
    public static final int LINE_TYPE_MAIN = 0;
    public static final int LINE_TYPE_DISTRIBUTION = 1;

    public static final int MIN_LINE_NO = 1;
    public static final int MAX_LINE_NO = 20;

    public static final Set<Integer> CON_TYPES = new LinkedHashSet<Integer>(Arrays.asList(0, 1, 2));

    public static final Set<Integer> LINE_TYPES = new LinkedHashSet<Integer>(Arrays.asList(
            LINE_TYPE_MAIN,
            LINE_TYPE_DISTRIBUTION
    ));

    public static final Set<BigDecimal> VOL_GRADES = new LinkedHashSet<BigDecimal>(Arrays.asList(
            new BigDecimal("0.38"),
            new BigDecimal("10"),
            new BigDecimal("35"),
            new BigDecimal("110"),
            new BigDecimal("220"),
            new BigDecimal("500")
    ));
}
