org.lsst.ccs.subsystems.fcs.singlefiltertest
Class SftMainModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.singlefiltertest.SftMainModule
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

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

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
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SftMainModule()
           
 
Method Summary
 java.lang.String displayData()
           
 java.lang.String executeSequence1()
          This method is the main sequence of commands that we want to test on the Single Filter Test.
 java.lang.String executeSequence1(int nb)
          This method will execute nb times the Sequence1 : the parameter nb is given by the user at the console.
 Filter getDummyFilter()
           
 Filter getFilterAtStandby()
           
 java.lang.String goToInitialStateForSequence1()
          Initial state for sequence1 : autochanger is in highposition and trucks are empty carousel holds a filter and its clamps are in CLAMPEDONFILTER state.
 void initModule()
           
 java.lang.String printFilters()
           
 void setDummyFilter(Filter dummyFilter)
           
 java.lang.String toString()
           
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, 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, wait, wait, wait
 

Constructor Detail

SftMainModule

public SftMainModule()
Method Detail

initModule

public void initModule()
Overrides:
initModule in class org.lsst.ccs.framework.Module

printFilters

public java.lang.String printFilters()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

displayData

public java.lang.String displayData()

goToInitialStateForSequence1

public java.lang.String goToInitialStateForSequence1()
Initial state for sequence1 : autochanger is in highposition and trucks are empty carousel holds a filter and its clamps are in CLAMPEDONFILTER state.

Returns:

executeSequence1

public java.lang.String executeSequence1()
                                  throws org.lsst.ccs.bus.BadCommandException,
                                         org.lsst.ccs.bus.ErrorInCommandExecutionException,
                                         HardwareErrorDetectedException
This method is the main sequence of commands that we want to test on the Single Filter Test. It executes this sequence of command a single time. Is consists in from the initial position (autochanger trucks empty in the higher position) :

Returns:
a message for the operator
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareErrorDetectedException

executeSequence1

public java.lang.String executeSequence1(int nb)
                                  throws org.lsst.ccs.bus.BadCommandException,
                                         org.lsst.ccs.bus.ErrorInCommandExecutionException,
                                         HardwareErrorDetectedException
This method will execute nb times the Sequence1 : the parameter nb is given by the user at the console.

Parameters:
nb - : number of times we want to execute the Sequence1
Returns:
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareErrorDetectedException

getDummyFilter

public Filter getDummyFilter()
Returns:
the dummyFilter

setDummyFilter

public void setDummyFilter(Filter dummyFilter)
Parameters:
dummyFilter - the dummyFilter to set

getFilterAtStandby

public Filter getFilterAtStandby()


Copyright © 2012 LSST. All Rights Reserved.