public enum RecordFlag extends Enum<RecordFlag>
| Enum Constant and Description |
|---|
FLOW_RATE
Couldn't get a normal air flow rate.
|
HIGH
The reading is above the upper threshold.
|
LASER
Laser problem.
|
LOW
The reading is below the lower threshold.
|
MALFUNCTION
Instrument malfunction.
|
OK
No problems.
|
OVERFLOW
Counter overflow.
|
SAMPLER
Sampler problem.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<RecordFlag> |
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 RecordFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecordFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecordFlag OK
public static final RecordFlag LASER
public static final RecordFlag FLOW_RATE
public static final RecordFlag OVERFLOW
public static final RecordFlag MALFUNCTION
public static final RecordFlag HIGH
public static final RecordFlag LOW
public static final RecordFlag SAMPLER
public static RecordFlag[] values()
for (RecordFlag c : RecordFlag.values()) System.out.println(c);
public static RecordFlag 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<RecordFlag>public int getMask()
public static Set<RecordFlag> flagsFromMask(int mask)
mask - The channel status bits from the counter.Copyright © 2019 LSST. All rights reserved.