public enum SensorValueType extends Enum<SensorValueType> implements Enumeration
Enum Constant and Description |
---|
Amperes
A measure of electric current.
|
Celsius
A measure of temperature.
|
Cmm
A measure of cubic meters per minute (airflow).
|
Hertz
A measure of frequency.
|
Other
A measure other than those listed below.
|
PercentRH
A measure of percent relative humidity.
|
Rpm
A measure of shaft revolutions per minute.
|
TruthValue
Value is one of 1 (true) or 2 (false)
|
Unknown
An unknown measurement or arbitrary, relative numbers
|
VoltsAC
A measure of electric potential (alternating current).
|
VoltsDC
A measure of electric potential (direct current).
|
Watts
A measure of power.
|
Modifier and Type | Method and Description |
---|---|
static Optional<SensorValueType> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static SensorValueType |
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 SensorValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorValueType Other
public static final SensorValueType Unknown
public static final SensorValueType VoltsAC
public static final SensorValueType VoltsDC
public static final SensorValueType Amperes
public static final SensorValueType Watts
public static final SensorValueType Hertz
public static final SensorValueType Celsius
public static final SensorValueType PercentRH
public static final SensorValueType Rpm
public static final SensorValueType Cmm
public static final SensorValueType TruthValue
public static SensorValueType[] values()
for (SensorValueType c : SensorValueType.values()) System.out.println(c);
public static SensorValueType 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<SensorValueType> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static SensorValueType forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.