|
|
@ -2,14 +2,19 @@ package com.kms.yg.cz.enmu; |
|
|
|
|
|
|
|
import lombok.Getter; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Collections; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Getter |
|
|
|
public enum MonitorTypeEnum implements MonitorIndexInfo { |
|
|
|
|
|
|
|
WATER_LEVEL("水位", MonitorSourceEnum.MS_HDM_RSVR, "rz", "collTime", "m", MarkTypeEnum.FSLTDZ_LIMIT), |
|
|
|
WATER_LEVEL("水位", MonitorSourceEnum.MS_HDM_RSVR, "rz", "collTime", "m", |
|
|
|
Arrays.asList(MarkTypeEnum.FSLTDZ_LIMIT, MarkTypeEnum.CHFLLV)), |
|
|
|
DF_WATER_LEVEL("水位", MonitorSourceEnum.MS_HDM_RIVER, "z", "tm", "m"), |
|
|
|
STORE_WATER("蓄水量", MonitorSourceEnum.MS_HDM_RSVR, "w", "collTime", "m³"), |
|
|
|
SK_RAINFALL("降雨量", MonitorSourceEnum.MS_HDM_OBP, "drp", "collTime", "mm", MarkTypeEnum.CHFLLV), |
|
|
|
RAINFALL("降雨量", MonitorSourceEnum.MS_HDM_OBP, "drp", "collTime", "mm" ), |
|
|
|
SK_RAINFALL("降雨量", MonitorSourceEnum.MS_HDM_OBP, "drp", "collTime", "mm"), |
|
|
|
RAINFALL("降雨量", MonitorSourceEnum.MS_HDM_OBP, "drp", "collTime", "mm"), |
|
|
|
INFLOW_RATE("入库流量", MonitorSourceEnum.MS_HDM_RSVR, "inq", "collTime", "m³/s"), |
|
|
|
OUTFLOW_RATE("出库流量", MonitorSourceEnum.MS_HDM_RSVR, "otq", "collTime", "m³/s"), |
|
|
|
AIR_TEMPE("气温", MonitorSourceEnum.MS_HDM_TMP, "atmp", "tm", "℃"), |
|
|
@ -26,7 +31,7 @@ public enum MonitorTypeEnum implements MonitorIndexInfo { |
|
|
|
STRESS("应力", MonitorSourceEnum.MS_DSM_PR, "sts", "mstm", "MPa"), |
|
|
|
STRAIN("应变", MonitorSourceEnum.MS_DSM_ST, "stn", "mstm", "με"), |
|
|
|
|
|
|
|
WATER_LEVEL_ABOVE_GATE("闸上水位", MonitorSourceEnum.MS_HDM_WAS, "upz", "tm", "m"), |
|
|
|
WATER_LEVEL_ABOVE_GATE("闸上水位", MonitorSourceEnum.MS_HDM_WAS, "upz", "tm", "m", Arrays.asList(MarkTypeEnum.NORM_WAT_LEV, MarkTypeEnum.DSFLLV)), |
|
|
|
WATER_LEVEL_BELOW_GATE("闸下水位", MonitorSourceEnum.MS_HDM_WAS, "dwz", "tm", "m"), |
|
|
|
GATE_FLOW_RATE("过闸流量", MonitorSourceEnum.MS_HDM_WAS, "tgtq", "tm", "m³/s"), |
|
|
|
SEEPAGE_AROUND_DAM("绕坝渗流", MonitorSourceEnum.MS_DSM_PTMP, "bypassSeepage", "pstm", "L/s");; |
|
|
@ -36,19 +41,19 @@ public enum MonitorTypeEnum implements MonitorIndexInfo { |
|
|
|
private final String valueField; |
|
|
|
private final String timeField; |
|
|
|
private final String unit; |
|
|
|
private final MarkTypeEnum markType; |
|
|
|
private final List<MarkTypeEnum> markTypes; |
|
|
|
|
|
|
|
MonitorTypeEnum(String zhName, MonitorSourceEnum source, String valueField, String timeField, String unit) { |
|
|
|
this(zhName, source, valueField, timeField, unit, null); |
|
|
|
this(zhName, source, valueField, timeField, unit, Collections.emptyList()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
MonitorTypeEnum(String zhName, MonitorSourceEnum source, String valueField, String timeField, String unit, MarkTypeEnum markType) { |
|
|
|
MonitorTypeEnum(String zhName, MonitorSourceEnum source, String valueField, String timeField, String unit, List<MarkTypeEnum> markTypes) { |
|
|
|
this.zhName = zhName; |
|
|
|
this.source = source; |
|
|
|
this.valueField = valueField; |
|
|
|
this.unit = unit; |
|
|
|
this.markType = markType; |
|
|
|
this.markTypes = markTypes; |
|
|
|
this.timeField = timeField; |
|
|
|
} |
|
|
|
|
|
|
|