public class APCTestBenchMainModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
double |
temperature |
| Constructor and Description |
|---|
APCTestBenchMainModule() |
| Modifier and Type | Method and Description |
|---|---|
BridgeToHardware |
getBridge() |
CanOpenLED |
getFakeLed() |
Thermometer |
getFakeSensor() |
CanOpenLED |
getLed() |
int |
getReturnValue(String responseLine,
int inputNB)
Returns the value read on the socket for the input of the ADC given as an argument.
|
Thermometer |
getThermometer() |
void |
initModule() |
double |
readFakeSensor() |
double |
readTemperature() |
double |
readTemperatureFromPDO() |
void |
setBridge(BridgeToHardware bridge) |
void |
setFakeLed(CanOpenLED fakeLed) |
void |
setFakeSensor(Thermometer fakeSensor) |
void |
setLed(CanOpenLED led) |
void |
setThermometer(Thermometer thermometer) |
void |
tick() |
String |
turnOffFakeLED() |
String |
turnOffLED() |
String |
turnOnFakeLED() |
String |
turnOnLED() |
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, signal, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkprotected static final org.lsst.ccs.utilities.logging.Logger fcslog
public double temperature
public BridgeToHardware getBridge()
public void setBridge(BridgeToHardware bridge)
public Thermometer getThermometer()
public void setThermometer(Thermometer thermometer)
public CanOpenLED getLed()
public void setLed(CanOpenLED led)
public CanOpenLED getFakeLed()
public void setFakeLed(CanOpenLED fakeLed)
public Thermometer getFakeSensor()
public void setFakeSensor(Thermometer fakeSensor)
public int getReturnValue(String responseLine, int inputNB) throws ReadingADCException
responseLine - A string read on the socket.inputNB - The numero if the input on the ADC. (1<=inputNB<=8)ReadingADCExceptionpublic double readTemperature()
throws FcsHardwareException
FcsHardwareExceptionpublic double readTemperatureFromPDO()
throws FcsHardwareException,
org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic String turnOnLED() throws SDORequestException, HardwareNotDetectedException
public String turnOffLED() throws SDORequestException, HardwareNotDetectedException
public String turnOnFakeLED() throws SDORequestException, HardwareNotDetectedException
public String turnOffFakeLED() throws SDORequestException, HardwareNotDetectedException
public double readFakeSensor()
throws FcsHardwareException,
org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.ModuleCopyright © 2015 LSST. All rights reserved.