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.

195 lines
2.9 KiB

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