public class FcsMainModule extends MainModule implements FilterLocator
bridge, haltRequired, stopRequiredFILTER_CONFIG_CATEGORY| Constructor and Description |
|---|
FcsMainModule(BridgeToHardware bridge,
BridgeToHardware bridgeToLoader,
FilterManager filterMg,
CarouselModule carousel,
AutoChangerModule autochanger,
LoaderModule loader)
Build a FcsMainModule
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeState(String state)
just for mcm testing
|
void |
checkAutochangerTrucksLocation()
Check where are the autochanger trucks.
|
void |
checkFilterName(String aName)
Check if a filter name given by an end user at the console is a valid Filter Name.
|
void |
connectLoader()
Connect the loader hardware.
|
void |
disconnectLoader()
Disconnect the loader hardware.
|
CarouselModule |
getCarousel()
Return the carousel Module of this filter locater.
|
Filter |
getFilterByName(String filterName)
This methods returns the filter which has for name the String given as argument.
|
FilterManager |
getFilterManager()
Return the filter manager of this filter locater.
|
String |
getOnlineFilterName()
Return the name of the filter which is at ONLINE.
|
void |
initModule()
In the initialisation, we want to do some software initialization, and
some hardware initialization.
|
boolean |
isChangerConnected()
Return true if the changer is connected.
|
boolean |
isChangerReady()
Return true if the hardware of the changer is ready.
|
boolean |
isLoaderConnected()
Return true if the loader is connected.
|
boolean |
isLoaderReady()
Return true if the hardware of the loader is ready.
|
List<String> |
listLoaderHardwareNames()
For Whole FCS GUI.
|
void |
loadFilter(Filter aFilter)
Load a filter from the loader to the camera.
|
void |
postStart()
This happens when the hardware has been initialized.
|
String |
printFilterONLINEName()
For end user.
|
void |
setFilter(String letter)
Move a filter to ONLINE position.
|
void |
shutdownNow() |
String |
toString() |
void |
unloadFilter(Filter aFilter)
Unload a filter from the camera to the loader.
|
void |
updateFCSState()
Updates the FCS state and FCS readyness state and publishes on the status bus.
|
void |
updateStateWithSensors()
Update state in reading sensors for all components of Filter Changer : carousel, autochanger and loader.
|
controlRealHardware, getFilterNames, isCANDevicesReady, isHaltRequired, isStopRequired, listHardwareNames, signalgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckFiltersLocation, saveFilterLocationgetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarningchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic FcsMainModule(BridgeToHardware bridge, BridgeToHardware bridgeToLoader, FilterManager filterMg, CarouselModule carousel, AutoChangerModule autochanger, LoaderModule loader)
bridge - bridgeToLoader - filterMg - carousel - autochanger - loader - public CarouselModule getCarousel()
FilterLocatorgetCarousel in interface FilterLocatorpublic FilterManager getFilterManager()
FilterLocatorgetFilterManager in interface FilterLocatorpublic void updateFCSState()
MainModuleupdateFCSState in class MainModulepublic String getOnlineFilterName()
@Command(type=QUERY,
level=0,
description="Returns the name of the filter which is at ONLINE.")
public String printFilterONLINEName()
@Command(type=QUERY,
level=0,
description="returns the filter which has for name the String given as argument.")
public Filter getFilterByName(String filterName)
filterName - public void initModule()
initModule in class MainModule@Command(type=QUERY,
level=0,
description="Return true if the changer is connected.")
public boolean isChangerConnected()
@Command(type=QUERY,
level=0,
description="Return true if the loader is connected.")
public boolean isLoaderConnected()
@Command(type=QUERY,
level=0,
description="Return true if the hardware of the changer is ready.")
public boolean isChangerReady()
@Command(type=QUERY,
level=0,
description="Return true if the hardware of the loader is ready.")
public boolean isLoaderReady()
@Command(type=ACTION,
level=0,
description="Disconnect the loader hardware.")
public void disconnectLoader()
@Command(type=ACTION,
level=0,
description="Connect the loader hardware.")
public void connectLoader()
throws org.lsst.ccs.HardwareException
org.lsst.ccs.HardwareExceptionpublic void checkFilterName(String aName)
aName - public void checkAutochangerTrucksLocation()
@Command(type=QUERY,
level=1,
description="Return the list of LOADER CANopen hardware that this subsystem manages.")
public List<String> listLoaderHardwareNames()
listLoaderHardwareNames in class MainModule@Command(type=ACTION,
level=0,
description="Move filter to ONLINE position.",
alias="setFilterONLINE",
timeout=60)
public void setFilter(String letter)
letter - name of the filter to moveFcsHardwareException@Command(type=ACTION,
level=0,
description="change subsystem state.")
public void changeState(String state)
state - public void loadFilter(Filter aFilter) throws org.lsst.ccs.HardwareException
aFilter - FcsHardwareExceptionorg.lsst.ccs.HardwareExceptionpublic void unloadFilter(Filter aFilter) throws org.lsst.ccs.HardwareException
aFilter - FcsHardwareExceptionorg.lsst.ccs.HardwareExceptionRejectedCommandExceptionpublic void updateStateWithSensors()
updateStateWithSensors in class MainModuleFcsHardwareExceptionpublic void postStart()
MainModulepostStart in interface org.lsst.ccs.framework.ConfigurablepostStart in interface org.lsst.ccs.framework.HasLifecyclepostStart in class MainModulepublic void shutdownNow()
shutdownNow in interface org.lsst.ccs.framework.ConfigurableshutdownNow in interface org.lsst.ccs.framework.HasLifecycleshutdownNow in class org.lsst.ccs.framework.ModuleCopyright © 2017 LSST. All rights reserved.