
public class FcsMain extends MainModule implements FilterLocator
bridge, haltRequired, name, stopRequired, subsalertSeparater| Constructor and Description |
|---|
FcsMain(BridgeToHardware bridge,
BridgeToHardware bridgeToLoader)
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.
|
Carousel |
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.
|
org.lsst.ccs.PersistencyService |
getPersistenceService() |
void |
init() |
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() |
String |
printFilterONLINEName()
For end user.
|
void |
setFilter(String letter)
Move a filter to ONLINE position.
|
void |
shutdown() |
String |
toString() |
void |
unloadFilter(Filter aFilter)
Unload a filter from the camera to the loader.
|
void |
updateFCSStateToReady()
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.
|
allDevicesBooted, getAlertService, getFilterNames, getName, getSubsystem, isHaltRequired, isStopRequired, listHardwareNames, postShutdown, publishData, signalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckFiltersLocation, getName, getSubsystem, saveFilterLocationclearAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic FcsMain(BridgeToHardware bridge, BridgeToHardware bridgeToLoader)
bridge - bridgeToLoader - public Carousel getCarousel()
FilterLocatorgetCarousel in interface FilterLocatorpublic FilterManager getFilterManager()
FilterLocatorgetFilterManager in interface FilterLocatorpublic org.lsst.ccs.PersistencyService getPersistenceService()
getPersistenceService in interface FilterLocatorpublic void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void updateFCSStateToReady()
MainModuleupdateFCSStateToReady 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 - @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()
public 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)
aFilter - FcsHardwareExceptionpublic void unloadFilter(Filter aFilter)
aFilter - FcsHardwareExceptionRejectedCommandExceptionpublic void updateStateWithSensors()
updateStateWithSensors in class MainModuleFcsHardwareExceptionpublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void shutdown()
shutdown in interface org.lsst.ccs.framework.HasLifecycleCopyright © 2018 LSST. All rights reserved.