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.
 
 

194 lines
2.9 KiB

package com.hnac.hzims;
import io.swagger.models.auth.In;
import lombok.Getter;
public class EquipmentConstants {
public final static String APP_NAME = "hzims-equipment";
@Getter
public enum TaskTypeEnum{
MANUAL("1","手动"),
AUTO("2","自动")
;
private final String type;
@Getter
private final String describe;
TaskTypeEnum(String type, String describe) {
this.type = type;
this.describe = describe;
}
}
/**
* 周期类型
*/
@Getter
public enum CycleTypeEnum {
/**
* 秒
*/
S_CYCLE(0,"秒"),
/**
* 分
*/
M_CYCLE(1,"分"),
/**
* 时
*/
H_CYCLE(2,"时"),
/**
* 天
*/
DAY_CYCLE(3,"天"),
/**
* 周
*/
WEEK_CYCLE(4,"周"),
/**
* 月
*/
MONTH_CYCLE(5,"月"),
/**
* 年
*/
YEAR_CYCLE(6,"年");
private final int type;
@Getter
private final String name;
CycleTypeEnum(int type, String name){
this.type = type;
this.name = name;
}
}
/**
* 取数规则
*/
@Getter
public enum AccessRulesEnum {
/**
* 最早值
*/
EARLY_CYCLE(0,"最早值"),
/**
* 最大值
*/
MAX_CYCLE(1,"最大值"),
/**
* 最小值
*/
MIN_CYCLE(2,"最小值"),
/**
* 平均值
*/
AVG_CYCLE(3,"平均值"),
/**
* 和值
*/
SUM_CYCLE(4,"和值"),
/**
* 差值
*/
DIFF_CYCLE(5,"差值"),
/**
* 最后值
*/
FINAL_CYCLE(6,"最后值");
private final int type;
@Getter
private final String name;
AccessRulesEnum(int type, String name){
this.type = type;
this.name = name;
}
}
/**
* 装机容量
*/
@Getter
public enum MainEnum {
/**
* 装机容量
*/
INSTALLED_CAPACITY("installedCapacity","装机容量");
private final String val;
@Getter
private final String name;
MainEnum(String val, String name){
this.val = val;
this.name = name;
}
}
/**
* 运行状态
*/
@Getter
public enum RunStatus {
run("1","正常"),
spare("2","备用"),
access("0","检修"),
;
private final String status;
@Getter
private final String des;
RunStatus(String status, String des) {
this.status = status;
this.des = des;
}
}
/**
* 运行状态
*/
@Getter
public enum ActivateStatusEnum {
stop(0,"停用"),
start(1,"启用")
;
private final Integer status;
@Getter
private final String des;
ActivateStatusEnum(Integer status, String des) {
this.status = status;
this.des = des;
}
}
/**
* 装机容量
*/
@Getter
public enum SignageEnum {
/**
* 发电标识
*/
GENERATION_CAPACITY_SIGNAGE("generation_capacity","发电标识"),
/**
* 有功功率标识
*/
POWER_SIGNAGE_SIGNAGE("active_power","有功功率标识"),
/**
* 合位继电器
*/
JOINT_RELAY_SIGNAGE_SIGNAGE("joint_relay","合位继电器");
private final String val;
@Getter
private final String name;
SignageEnum(String val, String name){
this.val = val;
this.name = name;
}
}
}