
public class ChilledDoor extends Object implements Instrument
| Constructor and Description |
|---|
ChilledDoor(InstrumentConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Instrument |
disable()
Produces a new instance that has readout disabled.
|
Instrument |
enable()
Produces a new instance that has been enabled for readout.
|
int |
getExceptionCount()
Gets the number of consecutive operations that were terminated by an exception.
|
int |
getIndex()
Gets the position of this instrument in the list of instruments.
|
Optional<org.lsst.ccs.HardwareException> |
getLastException()
Gets the exception thrown (if any) the last time we tried to operate on this instrument.
|
InstrumentStatus |
getStatus()
Gets the current status of the instrument.
|
Stream<TrendableRecord> |
getTrendables()
Gets all the trendable data resulting from the last reading of the instrument.
|
Instrument |
read()
Produces a new instance that contains a fresh set of data read from
the instrument.
|
public ChilledDoor(InstrumentConfig config)
public Optional<org.lsst.ccs.HardwareException> getLastException()
InstrumentgetLastException in interface InstrumentOptional if there have been no operations or if the last operation
was successful. Otherwise an Optional containing the exception that terminated
the operation. Getters are not considered operations.public int getExceptionCount()
InstrumentgetExceptionCount in interface Instrumentpublic int getIndex()
InstrumentgetIndex in interface InstrumentConfigurationService.getInstrumentConfigs()public Stream<TrendableRecord> getTrendables()
InstrumentgetTrendables in interface InstrumentTrendableRecord instances, empty if no data
is available. The master key of each record is the location for
which the data were taken. The master timestamp is the time at which the record was
made. Each key/value pair consists of a channel name and value.Instrument.read()public InstrumentStatus getStatus()
InstrumentgetStatus in interface Instrumentpublic Instrument disable()
Instrumentdisable in interface Instrumentpublic Instrument enable()
Instrumentenable in interface Instrumentpublic Instrument read()
InstrumentInstrument.getTrendables() method relies on this
data to produce its result.read in interface InstrumentCopyright © 2017 LSST. All rights reserved.