|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.Sensor14bits
public abstract class Sensor14bits
This class represents an ADC which is a 12bits sensor : the value returned by the sensor is coded with 14 bits, so its value is between 0 and 32760.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Field Summary | |
|---|---|
protected int |
value
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
configMethods, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
Sensor14bits()
|
|
| Method Summary | |
|---|---|
int |
getMaxValue()
|
int |
getMinValue()
|
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()
|
void |
setMinValue(int minValue)
|
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. |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, tick, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.Sensor |
|---|
readNewValue |
| Field Detail |
|---|
protected int value
| Constructor Detail |
|---|
public Sensor14bits()
| Method Detail |
|---|
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic int getValue()
getValue in interface Sensorpublic void setValue(int aValue)
public int getMaxValue()
public int getMinValue()
public void setMinValue(int minValue)
public void updateValue()
throws SensorValueOutOfRangeException
updateValue in interface SensorSensorValueOutOfRangeExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||