提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 输出有效模式 |
|
7 |
* @date 2021/2/22 |
|
8 |
*/ |
|
9 |
public enum EM_ALARMOUT_POLE { |
|
10 |
/** 未知 */ |
|
11 |
EM_ALARMOUT_POLE_UNKNOWN, |
|
12 |
/** 低电平有效 */ |
|
13 |
EM_ALARMOUT_POLE_LOW, |
|
14 |
/** 高电平有效 */ |
|
15 |
EM_ALARMOUT_POLE_HIGH; |
|
16 |
|
|
17 |
public static EM_ALARMOUT_POLE getAlarmOutPole(int pole) { |
|
18 |
for (EM_ALARMOUT_POLE alarmOutPole : EM_ALARMOUT_POLE.values()) { |
|
19 |
if (alarmOutPole.ordinal() == pole) { |
|
20 |
return alarmOutPole; |
|
21 |
} |
|
22 |
} |
|
23 |
return EM_ALARMOUT_POLE_UNKNOWN; |
|
24 |
} |
|
25 |
} |