public abstract class Sensor14bits extends org.lsst.ccs.framework.Module implements Sensor
| Modifier and Type | Field and Description |
|---|---|
protected int |
value |
| Constructor and Description |
|---|
Sensor14bits(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() |
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(PDOStorage pdoStorage)
This methods update the field value in extracting it from the parameter
pdoStorage which represents all the values read for an ADC.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreadNewValuechange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic int getValue()
public void updateValue()
updateValue in interface SensorSensorValueOutOfRangeExceptionpublic abstract int updateValue(PDOStorage pdoStorage)
pdoStorage - @Command(type=QUERY,
level=1,
description="Returns the value of the sensor stored in FCS memory. Doesn\'t read again the ADC device.")
public String printValue()
Copyright © 2017 LSST. All rights reserved.