
public enum InstrumentType extends Enum<InstrumentType>
| Enum Constant and Description |
|---|
CHILLED_DOOR
Motivair ChilledDoor Rack Cooling system.
|
DUMMY
A simulated instrument for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigName()
Gets the instrument type name as it should appear in configuration data.
|
Instrument |
make(InstrumentConfig config)
Makes the right kind of
Instrument objects using InstrumentConfigs. |
static Optional<InstrumentType> |
parse(String name)
Converts a string to one of the instances of this enum.
|
static InstrumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstrumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InstrumentType CHILLED_DOOR
public static final InstrumentType DUMMY
public static InstrumentType[] values()
for (InstrumentType c : InstrumentType.values()) System.out.println(c);
public static InstrumentType 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 getConfigName()
public Instrument make(InstrumentConfig config)
Instrument objects using InstrumentConfigs.config - The configuration information needed to make the new instrument object.public static Optional<InstrumentType> parse(String name)
name - The string to parse.Copyright © 2021 LSST. All rights reserved.