public enum AlarmState extends java.lang.Enum<AlarmState> implements Localized
Enum Constant and Description |
---|
ActiveAcked |
ActiveUnacked |
ClearAcked |
ClearUnacked |
Modifier and Type | Method and Description |
---|---|
AlarmState |
acknowledge()
A convenience function to get the next state when the current one is acknowledged.
|
static AlarmState |
get(boolean clear,
boolean ack) |
boolean |
isAcked()
A convenience function for telling whether this is one of the acknowledged states or not.
|
boolean |
isActive()
Convenience function for telling whether this is one of the active states.
|
boolean |
isEquivilent(java.lang.Object o) |
java.lang.String |
toString() |
java.lang.String |
toString(java.util.Locale locale) |
static AlarmState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlarmState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlarmState ClearUnacked
public static final AlarmState ClearAcked
public static final AlarmState ActiveUnacked
public static final AlarmState ActiveAcked
public static AlarmState[] values()
for (AlarmState c : AlarmState.values()) System.out.println(c);
public static AlarmState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isAcked()
public boolean isActive()
public AlarmState acknowledge()
public boolean isEquivilent(java.lang.Object o)
public static AlarmState get(boolean clear, boolean ack)
public java.lang.String toString()
toString
in class java.lang.Enum<AlarmState>