
public class SftMainModule extends MainModule
bridge, fcslog, haltRequired, hardwareReady, stopRequired| Constructor and Description |
|---|
SftMainModule(String aName,
int aTickMillis,
BridgeToHardware bridge,
Filter dummyFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPreConditionsForUnlockClamps() |
String |
displayData() |
String |
executeSequence1()
This method is the main sequence of commands that we want to test on the Single Filter Test.
|
String |
executeSequence1(int nb)
This method will execute nb times the Sequence1 : the parameter nb
is given by the user at the console.
|
SftAutoChangerModule |
getAutoChangerModule() |
SftCarouselModule |
getCarouselModule() |
Filter |
getDummyFilter() |
Filter |
getFilterAtStandby() |
SingleFilterTestConfig |
getFullState() |
String |
goToInitialState()
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() |
void |
locateFilter() |
String |
printFilters() |
void |
processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate v) |
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
tick() |
String |
toString() |
void |
updateStateWithSensors()
This command updates the state of the carousel and of the autochanger in reading the sensors.
|
controlRealHardware, getCanOpenHardwareFullState, getHaltRequired, getStopRequired, getSubsystemState, getTcpProxy, isHardwareReady, listHardware, postStart, simulateAlarmalias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkpublic SftMainModule(String aName, int aTickMillis, BridgeToHardware bridge, Filter dummyFilter)
public Filter getDummyFilter()
public void initModule()
initModule in class MainModulepublic void tick()
tick in class org.lsst.ccs.framework.Module@Command(level=0, description="Read the sensors and update the location of the filter and the state of the carousel and the autochanger.", type=QUERY) public void locateFilter() throws FcsHardwareException, org.lsst.ccs.bus.ErrorInCommandExecutionException, org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandException@Command(level=1, description="Check if the carousel is ready to unlock the clamps in a safe way for the filter.", type=QUERY, alias="checkUnlock") public void checkPreConditionsForUnlockClamps() throws FcsHardwareException, org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
FcsHardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionException@Command(level=1, description="To display at a console the status of the hardware.", type=QUERY) public String displayData()
@Command(level=1, description="Move the hardware to the initial state : ", type=ACTION) public String goToInitialState() throws FcsHardwareException, org.lsst.ccs.bus.ErrorInCommandExecutionException, org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandException@Command(level=0, description="The world famous sequence 1", type=ACTION, alias="es1") public String executeSequence1() throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException, CanOpenException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionCanOpenException@Command(level=0, description="The world famous sequence 1 (with number of repetitions)", type=ACTION, alias="es1") public String executeSequence1(@Argument(name="nExecutions",description="Number of executions") int nb) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException, CanOpenException
nb - : number of times we want to execute the Sequence1org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionCanOpenExceptionpublic Filter getFilterAtStandby()
public void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulepublic String printFilters()
public String toString()
toString in class MainModule@Command(level=1, description="Read the sensors and update the state of the carousel and the autochanger.", type=QUERY) public void updateStateWithSensors() throws FcsHardwareException, org.lsst.ccs.bus.ErrorInCommandExecutionException, org.lsst.ccs.bus.BadCommandException
updateStateWithSensors in class MainModuleFcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal signal)
signal in interface org.lsst.ccs.framework.SignalHandlersignal in class MainModulepublic SftCarouselModule getCarouselModule()
public SftAutoChangerModule getAutoChangerModule()
@Command(type=QUERY, level=0, description="The GUIs need that for the initialization.") public SingleFilterTestConfig getFullState()
Copyright © 2015 LSST. All rights reserved.