public interface Sensor
| 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.
|
int getValue()
int readNewValue()
throws FcsHardwareException
FcsHardwareExceptionvoid updateValue()
throws SensorValueOutOfRangeException,
FcsHardwareException
Copyright © 2014 LSST. All rights reserved.