You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
176 lines
2.6 KiB
176 lines
2.6 KiB
2 years ago
|
package com.hnac.hzims;
|
||
|
|
||
|
import lombok.Getter;
|
||
|
|
||
|
public class EquipmentConstants {
|
||
|
public final static String APP_NAME = "hzims-equipment";
|
||
|
|
||
|
public enum TaskTypeEnum{
|
||
|
MANUAL("1","手动"),
|
||
|
AUTO("2","自动")
|
||
|
;
|
||
|
@Getter
|
||
|
private String type;
|
||
|
@Getter
|
||
|
private String describe;
|
||
|
|
||
|
|
||
|
TaskTypeEnum(String type, String describe) {
|
||
|
this.type = type;
|
||
|
this.describe = describe;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 周期类型
|
||
|
*/
|
||
|
public enum CycleTypeEnum {
|
||
|
/**
|
||
|
* 秒
|
||
|
*/
|
||
|
S_CYCLE(0,"秒"),
|
||
|
/**
|
||
|
* 分
|
||
|
*/
|
||
|
M_CYCLE(1,"分"),
|
||
|
/**
|
||
|
* 时
|
||
|
*/
|
||
|
H_CYCLE(2,"时"),
|
||
|
/**
|
||
|
* 天
|
||
|
*/
|
||
|
DAY_CYCLE(3,"天"),
|
||
|
/**
|
||
|
* 周
|
||
|
*/
|
||
|
WEEK_CYCLE(4,"周"),
|
||
|
/**
|
||
|
* 月
|
||
|
*/
|
||
|
MONTH_CYCLE(5,"月"),
|
||
|
/**
|
||
|
* 年
|
||
|
*/
|
||
|
YEAR_CYCLE(6,"年");
|
||
|
@Getter
|
||
|
private int type;
|
||
|
@Getter
|
||
|
private String name;
|
||
|
private CycleTypeEnum(int type,String name){
|
||
|
this.type = type;
|
||
|
this.name = name;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 取数规则
|
||
|
*/
|
||
|
public enum AccessRulesEnum {
|
||
|
/**
|
||
|
* 最早值
|
||
|
*/
|
||
|
EARLY_CYCLE(0,"最早值"),
|
||
|
/**
|
||
|
* 最大值
|
||
|
*/
|
||
|
MAX_CYCLE(1,"最大值"),
|
||
|
/**
|
||
|
* 最小值
|
||
|
*/
|
||
|
MIN_CYCLE(2,"最小值"),
|
||
|
/**
|
||
|
* 平均值
|
||
|
*/
|
||
|
AVG_CYCLE(3,"平均值"),
|
||
|
/**
|
||
|
* 和值
|
||
|
*/
|
||
|
SUM_CYCLE(4,"和值"),
|
||
|
/**
|
||
|
* 差值
|
||
|
*/
|
||
|
DIFF_CYCLE(5,"差值"),
|
||
|
/**
|
||
|
* 最后值
|
||
|
*/
|
||
|
FINAL_CYCLE(6,"最后值");
|
||
|
@Getter
|
||
|
private int type;
|
||
|
@Getter
|
||
|
private String name;
|
||
|
private AccessRulesEnum(int type,String name){
|
||
|
this.type = type;
|
||
|
this.name = name;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 装机容量
|
||
|
*/
|
||
|
public enum MainEnum {
|
||
|
/**
|
||
|
* 装机容量
|
||
|
*/
|
||
|
INSTALLED_CAPACITY("installedCapacity","装机容量");
|
||
|
|
||
|
@Getter
|
||
|
private String val;
|
||
|
@Getter
|
||
|
private String name;
|
||
|
private MainEnum(String val,String name){
|
||
|
this.val = val;
|
||
|
this.name = name;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 运行状态
|
||
|
*/
|
||
|
public enum RunStatus {
|
||
|
run("1","正常"),
|
||
|
spare("2","备用"),
|
||
|
access("0","检修"),
|
||
|
;
|
||
|
@Getter
|
||
|
private String status;
|
||
|
@Getter
|
||
|
private String des;
|
||
|
|
||
|
private RunStatus(String status, String des) {
|
||
|
this.status = status;
|
||
|
this.des = des;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 装机容量
|
||
|
*/
|
||
|
public enum SignageEnum {
|
||
|
/**
|
||
|
* 发电标识
|
||
|
*/
|
||
|
GENERATION_CAPACITY_SIGNAGE("generation_capacity","发电标识"),
|
||
|
/**
|
||
|
* 有功功率标识
|
||
|
*/
|
||
|
POWER_SIGNAGE_SIGNAGE("active_power","有功功率标识"),
|
||
|
/**
|
||
|
* 合位继电器
|
||
|
*/
|
||
|
JOINT_RELAY_SIGNAGE_SIGNAGE("joint_relay","合位继电器");
|
||
|
|
||
|
@Getter
|
||
|
private String val;
|
||
|
@Getter
|
||
|
private String name;
|
||
|
private SignageEnum(String val,String name){
|
||
|
this.val = val;
|
||
|
this.name = name;
|
||
|
}
|
||
|
}
|
||
|
}
|