|
||||||||||
| 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.testbench.TestBenchMainModule
public class TestBenchMainModule
This is the very first version of the main module for the control software of the APC test bench. When the TestBenchMainModule starts, it starts a a TCP-IP server. the can open wrapper software will connect. Then the TestBenchProxy and the Wrapper will communicate over this TCP connection with a protocol to be define. In a first version : 1- The TCP server is started and waits for a client connection, 2- When the client connects, it sends first a key word "APCTestBench". 3- When the server receives the key word "APCTestBench", it's ready to boot the hardware and receive commands.
| 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.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
TestBenchMainModule()
|
|
| Method Summary | |
|---|---|
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()
|
| 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, 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestBenchMainModule()
| Method Detail |
|---|
public 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.Module
public int getReturnValue(String responseLine,
int inputNB)
throws ReadingADCError
responseLine - A string read on the socket.inputNB - The numero if the input on the ADC. (1<=inputNB<=8)
ReadingADCError
public double readTemperature()
throws ReadingADCError
ReadingADCError
public String readADC()
throws ReadingADCError
ReadingADCError
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||