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 AtomicBoolean |
stopRequired |
protected org.lsst.ccs.Subsystem |
subs |
AGENT_HEARTBEAT_TASK, 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 *************************************************
|
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() |
org.lsst.ccs.Subsystem |
getSubsystem() |
void |
init() |
abstract void |
initializeHardware()
initialize hardware after initialization.
|
boolean |
isHaltRequired() |
boolean |
isInState(Enum state) |
boolean |
isStopRequired() |
List<String> |
listHardwareNames()
Returns list of hardware names.
|
List<String> |
listLoaderHardwareNames()
For Whole FCS GUI.
|
void |
postShutdown() |
void |
publishData()
for GUI
|
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
updateAgentState(FcsEnumerations.FilterReadinessState readinessS) |
void |
updateAgentState(FcsEnumerations.FilterState filterS) |
void |
updateFCSStateToReady()
Updates the FCS state and FCS readyness 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, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthbroadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, initAgent, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, preInit, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, 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.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,
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 : couples of name of mobil item 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()
@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 boolean isInState(Enum state)
public FcsEnumerations.FilterReadinessState getFilterReadinessState()
@Command(type=ACTION,
level=1,
description="Update FCS state and FCS readiness state and publishes on the status bus.")
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()
public void postShutdown()
postShutdown in interface org.lsst.ccs.framework.HasLifecycleCopyright © 2022 LSST. All rights reserved.