public enum ChannelAccessAlarmSeverity extends Enum<ChannelAccessAlarmSeverity>
Enum Constant and Description |
---|
INVALID_ALARM
Unknown alarm severity.
|
MAJOR_ALARM
Major Alarm.
|
MINOR_ALARM
Minor alarm.
|
NO_ALARM
No alarm.
|
Modifier and Type | Method and Description |
---|---|
static ChannelAccessAlarmSeverity |
forSeverityCode(short severityCode)
Returns the severity for the given
severityCode . |
short |
toSeverityCode()
Returns the severity code associated with this severity.
|
static ChannelAccessAlarmSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelAccessAlarmSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelAccessAlarmSeverity NO_ALARM
public static final ChannelAccessAlarmSeverity MINOR_ALARM
public static final ChannelAccessAlarmSeverity MAJOR_ALARM
public static final ChannelAccessAlarmSeverity INVALID_ALARM
public static ChannelAccessAlarmSeverity[] values()
for (ChannelAccessAlarmSeverity c : ChannelAccessAlarmSeverity.values()) System.out.println(c);
public static ChannelAccessAlarmSeverity 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 nullpublic short toSeverityCode()
forSeverityCode(short)
public static ChannelAccessAlarmSeverity forSeverityCode(short severityCode)
severityCode
. This can be
used to translate a severity code received from the network into a
severity.severityCode
- integer number identifying the severity. Must be between 0 and
3.severityCode
, never
null
.IllegalArgumentException
- if the severityCode
does not represent a valid
severity (is not 0, 1, 2, or 3).Copyright © 2014–2016 aquenos GmbH. All rights reserved.