public class FcsMainModule extends MainModule
bridge, hardwareReady| 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) |
protected Filter |
getFilterOnline() |
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 |
stop(String moduleName)
This method stops the FCS subsystem given as an argument.
|
String |
toString() |
void |
unloadFilter(Filter aFilter)
Unload a filter from the camera to the loader
|
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, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic 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 stop(String moduleName) throws IllegalArgumentException
moduleName - cannot be null / must be : carousel, autochanger or fliprailIllegalArgumentExceptionpublic String moveFilterToOnline(Object filterName) throws InterruptedException, IllegalArgumentException, org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException, CanOpenException
filterName - name of the filter to moveInterruptedException, - IllegalArgumentExceptionorg.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionInterruptedExceptionIllegalArgumentExceptionHardwareExceptionCanOpenExceptionpublic 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()
protected Filter getFilterOnline()
public Double getStandbyPosition()
public void setStandbyPosition(Double standbyPosition)
public void loadFilter(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
aFilter - org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionpublic void unloadFilter(Filter aFilter) throws org.lsst.ccs.bus.BadCommandException, org.lsst.ccs.bus.ErrorInCommandExecutionException, HardwareException
aFilter - org.lsst.ccs.bus.BadCommandExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionHardwareExceptionCopyright © 2014 LSST. All Rights Reserved.