public enum ChannelUnits extends Enum<ChannelUnits>
| Enum Constant and Description |
|---|
CELSIUS
A temperature on the Celsius scale.
|
COUNTS
A count of particles of a certain size.
|
FAHRENHEIT
A temperature on the Fahrenheit scale.
|
PERCENTAGE
A percentage, for example relative humidity.
|
| Modifier and Type | Method and Description |
|---|---|
static ChannelUnits |
fromUnitsLabel(String label)
Find the measurement type corresponding to a device units-label.
|
String |
getDeviceText()
Gets the string used by the device to represent these units.
|
String |
toString()
Gets the string used to represent these units in files or other external storage.
|
static ChannelUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelUnits COUNTS
public static final ChannelUnits PERCENTAGE
public static final ChannelUnits CELSIUS
public static final ChannelUnits FAHRENHEIT
public static ChannelUnits[] values()
for (ChannelUnits c : ChannelUnits.values()) System.out.println(c);
public static ChannelUnits 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 toString()
toString in class Enum<ChannelUnits>public String getDeviceText()
public static ChannelUnits fromUnitsLabel(String label)
label - The data units label used by the counter.Copyright © 2019 LSST. All rights reserved.