|
|
@ -3,23 +3,24 @@ package com.iflytop.sgs.common.enums; |
|
|
|
import lombok.Getter; |
|
|
|
|
|
|
|
/** |
|
|
|
* 电磁转换阀状态枚举类 index为对应的物理通道 |
|
|
|
* |
|
|
|
* 电磁转换阀状态枚举类 channel为对应的设备定义的通道编号 |
|
|
|
*/ |
|
|
|
@Getter |
|
|
|
public enum ValveStateCode { |
|
|
|
//加液时 液量的转换系数 |
|
|
|
thin_way(1, "稀硝酸通道",SystemConfigCode.scale_thin), |
|
|
|
thick_way(2, "浓硝酸通道",SystemConfigCode.scale_thick), |
|
|
|
water(3, "蒸馏水通道",SystemConfigCode.scale_water), |
|
|
|
waste(4, "废水通道",SystemConfigCode.scale_waste), |
|
|
|
vacant(5, "空气通道",SystemConfigCode.scale_vacant); |
|
|
|
private final Integer index; |
|
|
|
thin(1, "稀硝酸通道", SystemConfigCode.scale_thin), |
|
|
|
thick(2, "浓硝酸通道", SystemConfigCode.scale_thick), |
|
|
|
water(3, "蒸馏水通道", SystemConfigCode.scale_water), |
|
|
|
waste(4, "废水通道", SystemConfigCode.scale_waste), |
|
|
|
vacant(5, "空气通道", SystemConfigCode.scale_vacant), |
|
|
|
; |
|
|
|
|
|
|
|
private final Integer channel; |
|
|
|
private final String description; |
|
|
|
private SystemConfigCode systemConfigCode; |
|
|
|
private final SystemConfigCode systemConfigCode; |
|
|
|
|
|
|
|
ValveStateCode(Integer index, String description, SystemConfigCode systemConfigCode) { |
|
|
|
this.index = index; |
|
|
|
ValveStateCode(Integer channel, String description, SystemConfigCode systemConfigCode) { |
|
|
|
this.channel = channel; |
|
|
|
this.description = description; |
|
|
|
this.systemConfigCode = systemConfigCode; |
|
|
|
} |
|
|
|