public class APCTestBenchMainModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
double |
temperature |
| Constructor and Description |
|---|
APCTestBenchMainModule(String name,
int tickMillis,
BridgeToHardware bridge,
CanOpenThermometer thermometer,
CanOpenLED led,
CanOpenLED fakeLed,
CanOpenThermometer fakeSensor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getReturnValue(String responseLine,
int inputNB)
Returns the value read on the socket for the input of the ADC given as an
argument.
|
void |
initModule() |
double |
readFakeSensor() |
double |
readTemperature() |
double |
readTemperatureFromPDO() |
void |
tick() |
String |
turnOffFakeLED() |
String |
turnOffLED() |
String |
turnOnFakeLED() |
String |
turnOnLED() |
getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, 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, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic APCTestBenchMainModule(String name, int tickMillis, BridgeToHardware bridge, CanOpenThermometer thermometer, CanOpenLED led, CanOpenLED fakeLed, CanOpenThermometer fakeSensor)
public int getReturnValue(String responseLine, int inputNB)
responseLine - A string read on the socket.inputNB - The numero if the input on the ADC. (1<=inputNB<=8)public double readTemperature()
throws FcsHardwareException
FcsHardwareExceptionpublic double readTemperatureFromPDO()
throws FcsHardwareException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandExceptionpublic String turnOnLED() throws SDORequestException, HardwareNotDetectedException, FcsHardwareException
public String turnOffLED() throws SDORequestException, HardwareNotDetectedException, FcsHardwareException
public String turnOnFakeLED() throws SDORequestException, HardwareNotDetectedException, FcsHardwareException
public String turnOffFakeLED() throws SDORequestException, HardwareNotDetectedException, FcsHardwareException
public double readFakeSensor()
throws FcsHardwareException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandExceptionpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.ModuleCopyright © 2016 LSST. All rights reserved.