public class SftMainModule extends MainModule
bridge, hardwareReady| 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) |
void |
tick() |
String |
toString() |
void |
updateStateWithSensors()
This command updates the state of the carousel and of the autochanger in reading the sensors.
|
isHardwareReady, listHardwarealias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic 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.Modulepublic void locateFilter()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
HardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic void checkPreConditionsForUnlockClamps()
throws HardwareException,
org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
HardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionpublic String displayData()
public String goToInitialState() throws HardwareException, org.lsst.ccs.bus.ErrorInCommandExecutionException, org.lsst.ccs.bus.BadCommandException
HardwareExceptionorg.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,
HardwareException,
CanOpenException
org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionCanOpenException@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",defaultValue="1")
int nb)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
HardwareException,
CanOpenException
nb - : number of times we want to execute the Sequence1org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionCanOpenExceptionpublic 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 MainModulepublic void updateStateWithSensors()
throws HardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
HardwareErrororg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandExceptionHardwareExceptionpublic SftCarouselModule getCarouselModule()
public SftAutoChangerModule getAutoChangerModule()
public SingleFilterTestConfig getFullState()
Copyright © 2014 LSST. All Rights Reserved.