Enum Class AlarmLevel
- All Implemented Interfaces:
Serializable, Comparable<AlarmLevel>, Constable
Enumerates the discrete alarm levels used when evaluating measurement values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDirection of the alarm (high or low).Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the direction of the alarm.intReturns a relative priority used when comparing alarm severities.static AlarmLevelReturns the enum constant of this class with the specified name.static AlarmLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOLO
Low-low alarm limit exceeded. -
LO
Low alarm limit exceeded. -
HI
High alarm limit exceeded. -
HIHI
High-high alarm limit exceeded.
-
-
Field Details
-
priority
private final int priority -
direction
-
-
Constructor Details
-
AlarmLevel
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getPriority
public int getPriority()Returns a relative priority used when comparing alarm severities.- Returns:
- priority where higher magnitude indicates a more severe alarm
-
getDirection
Returns the direction of the alarm.- Returns:
- HIGH if the alarm is triggered by high values, otherwise LOW
-