public abstract class MainModule extends org.lsst.ccs.Subsystem implements AlertRaiser, org.lsst.ccs.framework.SignalHandler, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridge |
protected Map<String,EPOSController> |
controllerList |
protected org.lsst.ccs.services.DataProviderDictionaryService |
dataProviderDictionaryService |
protected AtomicBoolean |
haltRequired |
protected Map<String,MovedByEPOSController> |
hardMovedByController |
protected String |
name |
protected org.lsst.ccs.services.AgentPeriodicTaskService |
periodicTaskService |
protected AtomicBoolean |
stopRequired |
protected org.lsst.ccs.Subsystem |
subs |
AGENT_DESCRIPTION, AGENT_RUNTIMEINFO_TASK, commandExecutorLock, currentAction, currentQueries, currentSignals, jvmShutdown, logBusHandler, stateService, treeComponentInitializedalertSeparator| Constructor and Description |
|---|
MainModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allDevicesBooted()
This methods updates the boolean hardwareReady from the hardware bridge.
|
void |
build()
*** lifecycle methods *************************************************
|
void |
checkControllers()
Send command checkFault to each controllers.
|
void |
checkFaultForAllControllers()
Send command checkFault to each controller.
|
org.lsst.ccs.services.alert.AlertService |
getAlertService()
return alertService
|
List<String> |
getFilterNames()
Return a list of filter names that the subsystem manages.
|
FcsEnumerations.FilterReadinessState |
getFilterReadinessState() |
Map<String,String> |
getMobilNameControllerNameMap() |
Map<Integer,String> |
getSensorsMapPluggedOnPlutoGateway() |
org.lsst.ccs.Subsystem |
getSubsystem() |
void |
init() |
abstract void |
initializeHardware()
initialize hardware after initialization.
|
boolean |
isHaltRequired() |
boolean |
isInState(Enum state) |
boolean |
isStopRequired() |
List<String> |
listAcSensorsNames()
For whole FCS GUI or autochanger GUI.
|
List<String> |
listHardwareNames()
Returns list of hardware names.
|
List<String> |
listLoaderHardwareNames()
For Whole FCS GUI.
|
List<String> |
listLoSensorsNames()
For loader GUI.
|
void |
postShutdown() |
void |
publishData()
for GUI
|
boolean |
setTimedActionLoggingLevel(String levelName) |
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
updateAgentState(FcsEnumerations.AutochangerInclination inclinationS) |
void |
updateAgentState(FcsEnumerations.FilterReadinessState readinessS) |
void |
updateAgentState(FcsEnumerations.FilterState filterS) |
void |
updateAgentState(FcsEnumerations.McmState mcmS) |
void |
updateFCSStateToReady()
Updates the FCS state and FCS readiness state and publishes on the status bus.
|
void |
updateGui()
Read sensors and update state in reading sensors to update GUI.
|
abstract void |
updateStateWithSensors()
Update state in reading sensors.
|
getLogHandler, getLogHandlerLevel, getLogLevel, getNumberCommandThreads, isLogLevelInherited, ping, printLoggersLevel, printLogHandlersLevel, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishMonitoringDataOnStatusBus, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNew@LookupName protected String name
@LookupField(strategy=TOP) protected org.lsst.ccs.Subsystem subs
@LookupField(strategy=TREE) protected org.lsst.ccs.services.AgentPeriodicTaskService periodicTaskService
@LookupField(strategy=TREE) protected org.lsst.ccs.services.DataProviderDictionaryService dataProviderDictionaryService
@LookupField(strategy=TREE) protected final Map<String,MovedByEPOSController> hardMovedByController
@LookupField(strategy=TREE) protected final Map<String,EPOSController> controllerList
protected BridgeToHardware bridge
protected AtomicBoolean haltRequired
protected AtomicBoolean stopRequired
public org.lsst.ccs.Subsystem getSubsystem()
getSubsystem in interface AlertRaiserpublic org.lsst.ccs.services.alert.AlertService getAlertService()
AlertRaisergetAlertService in interface AlertRaiserpublic boolean isHaltRequired()
public boolean isStopRequired()
public void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init in interface org.lsst.ccs.framework.HasLifecycle@Command(type=QUERY,
level=1,
description="Return true if all hardware is booted with the correct serial number.")
public boolean allDevicesBooted()
@Command(type=QUERY,
level=0,
description="Returns the list of CANopen hardware managed by this subsystem.")
public List<String> listHardwareNames()
@Command(type=QUERY,
level=0,
description="Return the list of LOADER CANopen hardware managed by this subsystem.")
public List<String> listLoaderHardwareNames()
@Command(type=QUERY,
level=0,
description="Return the list of names of sensors plugged on autochanger pluto gateway.")
public List<String> listAcSensorsNames()
@Command(type=QUERY,
level=0,
description="Return the list of names of sensors plugged on Loader pluto gateway.")
public List<String> listLoSensorsNames()
@Command(type=QUERY,
description="Return the list of names of filters that this subsystem manages.",
level=0,
alias="listFilterNames")
public List<String> getFilterNames()
@Command(type=QUERY,
description="Return a map : couple of name of MobileItem and name of controller.",
level=0)
public Map<String,String> getMobilNameControllerNameMap()
@Command(type=QUERY,
level=0,
description="Update state in reading sensors.")
public abstract void updateStateWithSensors()
FcsHardwareExceptionpublic void updateGui()
public void checkControllers()
@Command(type=QUERY,
level=0,
description="Check fault on each controller, after hardware initialization. Launched from Controllers overview GUI.")
public void checkFaultForAllControllers()
@Command(type=QUERY,
level=1,
description="Check hardware after initialization. To be executed if during boot process some hardware is missing.")
public abstract void initializeHardware()
public void updateAgentState(FcsEnumerations.FilterState filterS)
public void updateAgentState(FcsEnumerations.FilterReadinessState readinessS)
public void updateAgentState(FcsEnumerations.AutochangerInclination inclinationS)
public void updateAgentState(FcsEnumerations.McmState mcmS)
public boolean isInState(Enum state)
public FcsEnumerations.FilterReadinessState getFilterReadinessState()
@Command(type=ACTION,
level=3,
description="Force FCS state and FCS readiness state to be ready and publishes on the status bus. TO BE USED ONLY IN EXTREME CASES.")
public void updateFCSStateToReady()
public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal signal)
signal in interface org.lsst.ccs.framework.SignalHandler@Command(type=QUERY,
level=0,
description="Publish Data to populate GUI.")
public void publishData()
@Command(type=ACTION,
level=1,
description="Change logging level of timed action, default is INFO")
public boolean setTimedActionLoggingLevel(String levelName)
public void postShutdown()
postShutdown in interface org.lsst.ccs.framework.HasLifecycleCopyright © 2024 LSST. All rights reserved.