org.lsst.ccs.subsystems.fcs.testbench
Class LPNHETestBenchMainModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.testbench.LPNHETestBenchMainModule
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable

public class LPNHETestBenchMainModule
extends org.lsst.ccs.framework.Module

This is the main module for the control software of the LPNHE test bench. The LPNHE test bench consists on one PC104 which hosts a Canfestival C-Wrapper and a Maxon Motor to unlock or release a carousel filter clamp. The C-Wrapper starts a TCPIP client which connects to the TCPIP server started by the main Module of the LPNHE test bench main Module. When the LPNHETestBenchMainModule starts, it starts a a TCP-IP server. the can open wrapper software will connect. Then the LPNHETestBenchProxy 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.

Author:
virieux
See Also:
Serialized Form

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
LPNHETestBenchMainModule()
           
 
Method Summary
 BridgeToHardware getBridge()
           
 FilterClampModule getClampXminus()
           
 boolean isHardwareConnected()
          This method returns true if the C-Wrapper is connected to the tcp proxy.
 boolean isHardwareReady()
          returns true if the hardware is booted, identified and initialized.
 double readTemperature()
          Read and return the temperature of the clampXminus.
 void setBridge(BridgeToHardware bridge)
           
 void setClampXminus(FilterClampModule clampXminus)
           
 void shutdown()
           
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, 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, tick, 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

LPNHETestBenchMainModule

public LPNHETestBenchMainModule()
Method Detail

getBridge

public BridgeToHardware getBridge()

setBridge

public void setBridge(BridgeToHardware bridge)

getClampXminus

public FilterClampModule getClampXminus()

setClampXminus

public void setClampXminus(FilterClampModule clampXminus)

readTemperature

public double readTemperature()
                       throws HardwareError
Read and return the temperature of the clampXminus. Just for the tests.

Returns:
Throws:
HardwareError

isHardwareConnected

public boolean isHardwareConnected()
This method returns true if the C-Wrapper is connected to the tcp proxy. The C-Wrapper has to send the tcpProxy clientName as a keyword before any communication can begin. So if the C-Wrapper doesn't send the good keyword or if it doesn't connect to the tcp proxy, this method returns false.


isHardwareReady

public boolean isHardwareReady()
returns true if the hardware is booted, identified and initialized.


shutdown

public void shutdown()


Copyright © 2013 LSST. All Rights Reserved.