
public enum InstrumentType extends Enum<InstrumentType>
| Enum Constant and Description |
|---|
DUMMY
A simulated instrument for testing purposes.
|
LIGHTHOUSE_MODBUS
Lighthouse Worldwide Solutions 3016-like particle counter with a direct Modbus connection.
|
LIGHTHOUSE_OPC
Lighthouse "instrument" which is actually a set of values published by the
LMS Express RT program using the OPC protocol.
|
| 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 LIGHTHOUSE_MODBUS
public static final InstrumentType LIGHTHOUSE_OPC
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 © 2019 LSST. All rights reserved.