public class FcsMainModule extends MainModule
bridge, 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.
|
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, getFilterNames, getHaltRequired, getStopRequired, getTcpProxy, isHardwareReady, listHardware, listHardwareNames, postStart, signal, simulateAlert, simulateWarninggetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, 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, start, submitChange, submitChanges, validateBulkChangepublic 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.Modulesource - v - public String displayData()
public String toString()
toString in class MainModulepublic String moveFilterToOnline(Object filterName) throws InterruptedException, IllegalArgumentException, org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException, CanOpenException
filterName - name of the filter to moveInterruptedException, - IllegalArgumentExceptionorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionInterruptedExceptionIllegalArgumentExceptionFcsHardwareExceptionCanOpenExceptionpublic String moveFilterToStandby(Object filterName) throws InterruptedException, IllegalArgumentException, org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException
filterName - name of the filter to moveInterruptedException, - IllegalArgumentExceptionorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.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.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
aFilter - org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void unloadFilter(Filter aFilter) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
aFilter - org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic 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.BadCommandExceptionCopyright © 2016 LSST. All rights reserved.