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(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(PDOStorage pdoStorage)
This methods update the field value in extracting it from the parameter
sensorsValues which represents all the values read for an ADC.
|
getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, 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, waitreadNewValuechange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic 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(PDOStorage pdoStorage)
sensorsValues - @Command(type=QUERY,
level=1,
description="Returns the value of the sensor stored in FCS memory.")
public String printValue()
Copyright © 2016 LSST. All rights reserved.