Package org.epics.pvdata.property
Enum AlarmStatus
- java.lang.Object
-
- java.lang.Enum<AlarmStatus>
-
- org.epics.pvdata.property.AlarmStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AlarmStatus>
public enum AlarmStatus extends Enum<AlarmStatus>
AlarmStatus definitions.- Author:
- mrk
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENTAn error generated by the client (e.g channel not found, disconnected, ...)CONFAn error generated by an error in configuration of one or multiple records.DBAn error generated by the interaction of multiple records.DEVICEAn error conditioned generated by the hardware.DRIVERAn error conditioned raised by the driver (e.g.NONENo alarm.RECORDAn error generated as part of the record calculation (e.g.UNDEFINEDThe status for a record that was never processed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlarmStatusgetStatus(int value)Get the alarm status.static String[]getStatusNames()Get the names associated with each status.static AlarmStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AlarmStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final AlarmStatus NONE
No alarm.
-
DEVICE
public static final AlarmStatus DEVICE
An error conditioned generated by the hardware.
-
DRIVER
public static final AlarmStatus DRIVER
An error conditioned raised by the driver (e.g. the device is not responding, cannot write to it, ...)
-
RECORD
public static final AlarmStatus RECORD
An error generated as part of the record calculation (e.g. alarm limits, state alarm, error in the calculation)
-
DB
public static final AlarmStatus DB
An error generated by the interaction of multiple records.
-
CONF
public static final AlarmStatus CONF
An error generated by an error in configuration of one or multiple records.
-
UNDEFINED
public static final AlarmStatus UNDEFINED
The status for a record that was never processed.
-
CLIENT
public static final AlarmStatus CLIENT
An error generated by the client (e.g channel not found, disconnected, ...)
-
-
Method Detail
-
values
public static AlarmStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AlarmStatus c : AlarmStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlarmStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getStatus
public static AlarmStatus getStatus(int value)
Get the alarm status.- Parameters:
value- the integer value- Returns:
- The alarm status
-
getStatusNames
public static String[] getStatusNames()
Get the names associated with each status.- Returns:
- the array of names
-
-