public enum SensorValueScale extends Enum<SensorValueScale> implements Enumeration
Enum Constant and Description |
---|
Atto
Data scaling factor of 10^-18.
|
Exa
Data scaling factor of 10^18.
|
Femto
Data scaling factor of 10^-15.
|
Giga
Data scaling factor of 10^9.
|
Kilo
Data scaling factor of 10^3.
|
Mega
Data scaling factor of 10^6.
|
Micro
Data scaling factor of 10^-6.
|
Milli
Data scaling factor of 10^-3.
|
Nano
Data scaling factor of 10^-9.
|
Peta
Data scaling factor of 10^15.
|
Pico
Data scaling factor of 10^-12.
|
Tera
Data scaling factor of 10^12.
|
Units
Data scaling factor of 10^0.
|
Yocto
Data scaling factor of 10^-24.
|
Yotta
Data scaling factor of 10^24.
|
Zepto
Data scaling factor of 10^-21.
|
Zetta
Data scaling factor of 10^21.
|
Modifier and Type | Method and Description |
---|---|
static Optional<SensorValueScale> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static SensorValueScale |
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 SensorValueScale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SensorValueScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SensorValueScale Yocto
public static final SensorValueScale Zepto
public static final SensorValueScale Atto
public static final SensorValueScale Femto
public static final SensorValueScale Pico
public static final SensorValueScale Nano
public static final SensorValueScale Micro
public static final SensorValueScale Milli
public static final SensorValueScale Units
public static final SensorValueScale Kilo
public static final SensorValueScale Mega
public static final SensorValueScale Giga
public static final SensorValueScale Tera
public static final SensorValueScale Peta
public static final SensorValueScale Exa
public static final SensorValueScale Zetta
public static final SensorValueScale Yotta
public static SensorValueScale[] values()
for (SensorValueScale c : SensorValueScale.values()) System.out.println(c);
public static SensorValueScale 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<SensorValueScale> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static SensorValueScale forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.