public class FcsMain extends MainModule
bridge, haltRequired, name, stopRequired, subsalertSeparator| 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.
|
Filter |
getFilterByName(String filterName)
This methods returns the filter which has for name the String given as argument.
|
String |
getOnlineFilterName()
Return the name of the filter which is at ONLINE.
|
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 |
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, isInState, isStopRequired, listHardwareNames, postShutdown, publishData, signal, updateAgentStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarningpublic FcsMain(BridgeToHardware bridge, BridgeToHardware bridgeToLoader)
bridge - bridgeToLoader - public void init()
public 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()
Copyright © 2018 LSST. All rights reserved.