public class TestBenchMainModule
extends org.lsst.ccs.framework.Module
| Constructor and Description |
|---|
TestBenchMainModule() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMyClientName() |
int |
getReturnValue(String responseLine,
int inputNB)
Returns the value read on the socket for the input of the ADC given as an argument.
|
ApcTcpProxy |
getTcpProxy() |
void |
initModule() |
String |
listNodes()
List the can open nodes which are booted.
|
String |
readADC()
Read the values of the 8 channels of the ADC.
|
String |
readFromSocket(String clientName) |
double |
readTemperature()
Read the temperature : in the test bench, a thermometer is plugged on the input number 1
of the ADC.
|
Object |
sendCanOpen(String command)
For engineering mode, this method can be used to send Can Open commands
to the Wrapper.
|
void |
setMyClientName(String myClientName) |
void |
setTcpProxy(ApcTcpProxy myTcpProxy) |
void |
stop() |
void |
stopAutomaticMode() |
void |
tick() |
void |
turnOffLED() |
void |
turnOnLED() |
alias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic ApcTcpProxy getTcpProxy()
public void setTcpProxy(ApcTcpProxy myTcpProxy)
myTcpProxy - the myTcpProxy to setpublic String getMyClientName()
public void setMyClientName(String myClientName)
myClientName - the myClientName to setpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Modulepublic 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 ReadingADCException
ReadingADCErrorReadingADCExceptionpublic String readADC() throws ReadingADCException
ReadingADCErrorReadingADCExceptionpublic String readFromSocket(String clientName) throws ProxyTimeoutException
ProxyTimeoutExceptionpublic void turnOnLED()
public void turnOffLED()
public void stopAutomaticMode()
public void stop()
public String listNodes()
public Object sendCanOpen(String command)
command - A Can Open command that the Wrapper should understand.Copyright © 2013 LSST. All Rights Reserved.