public enum SensorStatus extends Enum<SensorStatus> implements Enumeration
Enum Constant and Description |
---|
Nonoperational
Indicates that the server believes the sensor is broken.The sensor could have a
hard failure (disconnected wire)or a soft failure such as out-of-range, jittery,
or wildlyfluctuating readings.
|
Ok
Indicates that the server can obtain the sensor value.
|
Unavailable
Indicates that the server presently cannot obtain thesensor value.
|
Modifier and Type | Method and Description |
---|---|
static Optional<SensorStatus> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static SensorStatus |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static SensorStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorStatus Ok
public static final SensorStatus Unavailable
public static final SensorStatus Nonoperational
public static SensorStatus[] values()
for (SensorStatus c : SensorStatus.values()) System.out.println(c);
public static SensorStatus 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 String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<SensorStatus> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static SensorStatus forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.