public class FcsMainModule
extends org.lsst.ccs.framework.Module
| Constructor and Description |
|---|
FcsMainModule() |
| 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() |
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) |
void |
shutdown() |
String |
stop(String moduleName)
This method stops the FCS subsystem given as an argument.
|
String |
toString() |
alias, 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 void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic 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 void shutdown()
public 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)
Copyright © 2013 LSST. All Rights Reserved.