public enum DeviceFlag extends Enum<DeviceFlag>
| Enum Constant and Description |
|---|
ERROR
There's a problem.
|
NEW_DATA
New data has been collected since the last time the data registers were read.
|
RUNNING
The counter is running, that is, is not stopped.
|
SAMPLING
The counter is running and taking a sample right now.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<DeviceFlag> |
flagsFromMask(int mask)
Calculates the set of flags whose bits are set in a given mask.
|
int |
getMask()
Gets the hardware mask value for the flag.
|
String |
toString()
Gets the text form of the flag.
|
static DeviceFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceFlag RUNNING
public static final DeviceFlag SAMPLING
public static final DeviceFlag NEW_DATA
public static final DeviceFlag ERROR
public static DeviceFlag[] values()
for (DeviceFlag c : DeviceFlag.values()) System.out.println(c);
public static DeviceFlag 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<DeviceFlag>public int getMask()
public static Set<DeviceFlag> flagsFromMask(int mask)
mask - The channel status bits from the counter.Copyright © 2019 LSST. All rights reserved.