public class SftMainModule extends MainModule implements AutochangerHandler
bridge, 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() |
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() |
boolean |
isAutochangerHoldingFilterAtSTANDBY()
***********************************************************************************************
|
void |
locateFilter() |
void |
start() |
String |
toString() |
void |
updateStateWithSensors()
This command updates the state of the carousel and of the autochanger in
reading the sensors.
|
controlRealHardware, getFilterNames, getHaltRequired, getStopRequired, getTcpProxy, isHardwareReady, listHardware, listHardwareNames, postStart, signal, simulateAlert, simulateWarninggetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, submitChange, submitChanges, validateBulkChangepublic SftMainModule(String aName, int aTickMillis, BridgeToHardware bridge, Filter dummyFilter)
public Filter getDummyFilter()
public boolean isAutochangerHoldingFilterAtSTANDBY()
isAutochangerHoldingFilterAtSTANDBY in interface AutochangerHandlerpublic void initModule()
initModule in class MainModulepublic void start()
start in interface org.lsst.ccs.framework.Configurable@Command(level=0,
description="Read the sensors and update location of the filter and state of Carousel and Autochanger.",
type=QUERY)
public void locateFilter()
throws FcsHardwareException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionorg.lsst.ccs.messaging.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.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.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.messaging.ErrorInCommandExecutionException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionorg.lsst.ccs.messaging.BadCommandException@Command(level=0,
description="The world famous sequence 1",
type=ACTION,
alias="es1")
public String executeSequence1()
throws org.lsst.ccs.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
FcsHardwareException,
CanOpenException
org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.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.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
FcsHardwareException,
CanOpenException
nb - : number of times we want to execute the Sequence1org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionCanOpenExceptionpublic Filter getFilterAtStandby()
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.messaging.ErrorInCommandExecutionException,
org.lsst.ccs.messaging.BadCommandException
updateStateWithSensors in class MainModuleFcsHardwareExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionorg.lsst.ccs.messaging.BadCommandExceptionpublic SftCarouselModule getCarouselModule()
public SftAutoChangerModule getAutoChangerModule()
Copyright © 2016 LSST. All rights reserved.