public class APCTestBenchMainModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
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, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic 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)ReadingADCErrorReadingADCExceptionpublic double readTemperature()
throws HardwareException
HardwareExceptionpublic double readTemperatureFromPDO()
throws HardwareException,
org.lsst.ccs.bus.BadCommandException
HardwareExceptionorg.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 HardwareException,
org.lsst.ccs.bus.BadCommandException
HardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.ModuleCopyright © 2014 LSST. All Rights Reserved.