
public abstract class Sensor14bits extends org.lsst.ccs.framework.Module implements Sensor
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
fcslog |
protected static int |
maxValue |
protected static int |
minValue |
protected int |
value |
| Constructor and Description |
|---|
Sensor14bits(String moduleName,
int aTickMillis) |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
This method returns value if the sensor is not updating otherwise it waits
until the update is completed and returns the new read value from the hardware.
|
void |
initModule() |
String |
printValue() |
void |
setValue(int aValue) |
String |
toString() |
void |
updateValue()
This method updates the sensor value : first it reads a new value from the
hardware or from the simulated sensor,
then it checks if the value is in the range between minimal value and
maximal value.
|
abstract int |
updateValue(CanOpenProxy.PDOStorage pdoStorage)
This methods update the field value in extracting it from the parameter sensorsValues
which represents all the values read for an ADC.
|
alias, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadNewValueprotected static final Logger fcslog
protected int value
protected static final int minValue
protected static final int maxValue
public Sensor14bits(String moduleName, int aTickMillis)
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic int getValue()
public void setValue(int aValue)
public void updateValue()
throws SensorValueOutOfRangeException,
FcsHardwareException
updateValue in interface SensorSensorValueOutOfRangeExceptionFcsHardwareExceptionpublic abstract int updateValue(CanOpenProxy.PDOStorage pdoStorage)
sensorsValues - @Command(type=QUERY, level=1, description="Returns the value of the sensor stored in FCS memory.") public String printValue()
Copyright © 2015 LSST. All rights reserved.