|
||||||||||
| 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.APCTestBenchMainModule
public class APCTestBenchMainModule
This is 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 "TestBench". 3- When the server receives the key word "TestBench", 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 | |
|---|---|
double |
temperature
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
APCTestBenchMainModule()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
alias, change, checkHardware, dropConfigurationContext, getAvailableCommands, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, 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 |
| Field Detail |
|---|
public double temperature
| Constructor Detail |
|---|
public APCTestBenchMainModule()
| Method Detail |
|---|
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)
ReadingADCError
ReadingADCException
public double readTemperature()
throws HardwareException
HardwareException
public double readTemperatureFromPDO()
throws HardwareException,
org.lsst.ccs.bus.BadCommandException
HardwareException
org.lsst.ccs.bus.BadCommandException
public String turnOnLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestException
HardwareNotDetectedException
public String turnOffLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestException
HardwareNotDetectedException
public String turnOnFakeLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestException
HardwareNotDetectedException
public String turnOffFakeLED()
throws SDORequestException,
HardwareNotDetectedException
SDORequestException
HardwareNotDetectedException
public double readFakeSensor()
throws HardwareException,
org.lsst.ccs.bus.BadCommandException
HardwareException
org.lsst.ccs.bus.BadCommandExceptionpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void tick()
tick in class org.lsst.ccs.framework.Module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||