public class PlutoSensor extends org.lsst.ccs.framework.Module implements Sensor
| Constructor and Description |
|---|
PlutoSensor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
int |
readNewValue()
This method reads the current value in decimal measured by the hardware
or compute a random value for the simulated sensor, and returns this
current value.
|
void |
updateValue()
This method reads the current value, controls if this current value
is correct depending on the type of the sensor (this value could
be between a minimum and a maximum) and if the value is correct, updates the
Sensor.value field.
|
alias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic int getValue()
public int readNewValue()
throws HardwareException
SensorreadNewValue in interface SensorHardwareExceptionpublic void updateValue()
throws SensorValueOutOfRangeException,
HardwareException
SensorupdateValue in interface SensorSensorValueOutOfRangeExceptionHardwareExceptionCopyright © 2013 LSST. All Rights Reserved.