
public class FcsMainModule extends MainModule
bridge, fcslog, haltRequired, hardwareReady, stopRequired| Constructor and Description |
|---|
FcsMainModule(String aName,
int aTickMillis,
BridgeToHardware bridge) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
controlFilterName(Object o)
This method controls if the filter name given at the console by an operator is correct.
|
String |
displayData()
This method can be invoked from the Console to display at the Console
status data of the whole subsystem.
|
Filter |
getFilterAtStandby() |
Filter |
getFilterByName(String filterName) |
Map<String,Filter> |
getFilters() |
Double |
getStandbyPosition() |
void |
initModule()
In the initialisation, we want to do some software initialization,
and some hardware initialization.
|
boolean |
isEmptyOnline() |
boolean |
isEmptyStandBy() |
void |
loadFilter(Filter aFilter)
Load a filter from the loader to the camera.
|
String |
moveFilterToOnline(Object filterName)
Move a filter to online position.
|
String |
moveFilterToStandby(Object filterName)
Move a filter to standby position.
|
String |
printFilters() |
void |
processUpdate(Observable source,
org.lsst.ccs.framework.Module.ValueUpdate v)
What to do when the Modules we observe (carousel and autochanger) update
their data to publish : we publish on status bus.
|
void |
setFilters(Map<String,Filter> filters) |
void |
setStandbyPosition(Double standbyPosition) |
String |
toString() |
void |
unloadFilter(Filter aFilter)
Unload a filter from the camera to the loader.
|
void |
updateStateWithSensors() |
controlRealHardware, getCanOpenHardwareFullState, getHaltRequired, getStopRequired, getSubsystemState, getTcpProxy, isHardwareReady, listHardware, postStart, signal, 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, tick, 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 FcsMainModule(String aName, int aTickMillis, BridgeToHardware bridge)
public void initModule()
initModule in class MainModulepublic void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
processUpdate in class org.lsst.ccs.framework.Modulepublic String printFilters()
public String displayData()
public String toString()
toString in class MainModulepublic String moveFilterToOnline(Object filterName) throws InterruptedException, IllegalArgumentException, org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException, CanOpenException
filterName - name of the filter to moveInterruptedException, - IllegalArgumentExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionInterruptedExceptionIllegalArgumentExceptionFcsHardwareExceptionCanOpenExceptionpublic String moveFilterToStandby(Object filterName) throws InterruptedException, IllegalArgumentException, org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException
filterName - name of the filter to moveInterruptedException, - IllegalArgumentExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionInterruptedExceptionIllegalArgumentExceptionpublic Filter getFilterAtStandby()
protected void controlFilterName(Object o) throws IllegalArgumentException
o - the object we receive from the command line at the Console.IllegalArgumentException - in this case :
public boolean isEmptyStandBy()
public boolean isEmptyOnline()
public Double getStandbyPosition()
public void setStandbyPosition(Double standbyPosition)
public void loadFilter(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
aFilter - org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void unloadFilter(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, FcsHardwareException
aFilter - org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic 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.BadCommandExceptionCopyright © 2015 LSST. All rights reserved.