|
||||||||||
| 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
org.lsst.ccs.subsystems.fcs.drivers.CanOpenSensor14bits
public class CanOpenSensor14bits
This is a Model for a sensor on a can open bus which communicates over Can Open protocol. The sensor is supposed to be connected to a ADC with analogics input.(CAN-CBX-AI814)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable |
|---|
org.lsst.ccs.framework.Configurable.Environment |
| Field Summary |
|---|
| Fields inherited from class org.lsst.ccs.subsystems.fcs.Sensor14bits |
|---|
maxValue, minValue, value |
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
CanOpenSensor14bits()
|
|
| Method Summary | |
|---|---|
CanOpenADC |
getAdc()
|
String |
getAdcName()
|
int |
getNumOfAnalogInput()
|
void |
initModule()
|
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 |
setAdc(CanOpenADC adc)
|
void |
setAdcName(String adcName)
|
void |
setNumOfAnalogInput(int numOfAnalogInput)
|
String |
toString()
|
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. |
| Methods inherited from class org.lsst.ccs.subsystems.fcs.Sensor14bits |
|---|
getValue, setValue, updateValue |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, 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 |
| Constructor Detail |
|---|
public CanOpenSensor14bits()
| Method Detail |
|---|
public CanOpenADC getAdc()
public void setAdc(CanOpenADC adc)
public String getAdcName()
public void setAdcName(String adcName)
public int getNumOfAnalogInput()
public void setNumOfAnalogInput(int numOfAnalogInput)
public void initModule()
initModule in class Sensor14bits
public int readNewValue()
throws HardwareError
Sensor
HardwareErrorpublic int updateValue(CanOpenProxy.PDOStorage pdoStorage)
Sensor14bits
updateValue in class Sensor14bitspublic String toString()
toString in class Sensor14bits
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||