public enum AlarmSeverity extends Enum<AlarmSeverity>
Values are provided in order of increasing severity, so you can rely on
Enum.ordinal()
and Enum.compareTo(java.lang.Enum)
for comparison
and ordering. In case additional AlarmSeverity values are added in the future,
which is very unlikely, they will be added in order as well.
One should always bear in mind that the alarm severity of the IOC is set on the record, and not on the individual channel. If one is not connecting to the value field of the record, the severity does not reflect the state of that field.
For example: a record may be INVALID meaning that the value of the field was not correctly read by the hardware; if one connects to the display limit field, the value of that field will still be ok, but the alarm severity (if requested) would say INVALID.
Enum Constant and Description |
---|
INVALID
There is a major problem with the value itself: the exact meaning is defined
by the channel, but typically this means that the returned value is not a
real representation of the actual value.
|
MAJOR
There is a major problem with the value: the exact meaning is defined
by the channel, but typically this means that the value is valid and is
outside some working range.
|
MINOR
There is a minor problem with the value: the exact meaning is defined
by the channel, but typically this means that the value is valid and is
outside some working range.
|
NONE
The current value is valid, and there is no alarm.
|
UNDEFINED
The channel cannot be read and its state is undefined: the exact meaning is defined
by the channel, but typically this means that the client is either disconnected
or connected with no read access.
|
Modifier and Type | Method and Description |
---|---|
static List<String> |
labels()
Returns the list of labels for the severity.
|
static AlarmSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlarmSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlarmSeverity NONE
public static final AlarmSeverity MINOR
public static final AlarmSeverity MAJOR
public static final AlarmSeverity INVALID
public static final AlarmSeverity UNDEFINED
public static AlarmSeverity[] values()
for (AlarmSeverity c : AlarmSeverity.values()) System.out.println(c);
public static AlarmSeverity valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2010–2015. All rights reserved.