public class MainModule extends org.lsst.ccs.framework.Module implements AlertRaiser
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridge |
protected AtomicBoolean |
haltRequired |
protected AtomicBoolean |
stopRequired |
| Constructor and Description |
|---|
MainModule(BridgeToHardware bridge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
controlRealHardware() |
List<String> |
getFilterNames()
Return a list of filter names that the subsystem manages.
|
AtomicBoolean |
getHaltRequired() |
AtomicBoolean |
getStopRequired() |
TcpProxyInterface |
getTcpProxy() |
void |
initModule() |
boolean |
isCANDevicesReady()
This methods updates the boolean hardwareReady from the hardware bridge.
|
List<String> |
listHardwareNames() |
List<String> |
listLoaderHardwareNames()
For Whole FCS GUI.
|
void |
postStart()
This happens when the hardware has been initialized.
|
String |
printHardwareList()
This method returns a String with the list of hardware that this bridge
manages.
|
String |
printHardwareState() |
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
simulateAlert(String errorId,
String alarmMsg)
Just for tests.
|
void |
simulateWarning(String errorId,
String alarmMsg)
Just for tests.
|
void |
updateFCSState()
Check that Carousel hardware is ready to be operated and moved.
|
void |
updateStateWithSensors()
Update state in reading sensors.
|
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected BridgeToHardware bridge
protected AtomicBoolean haltRequired
protected AtomicBoolean stopRequired
public MainModule(BridgeToHardware bridge)
public AtomicBoolean getHaltRequired()
public AtomicBoolean getStopRequired()
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.ConfigurablepostStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareException@Command(level=1,
type=QUERY,
description="Return true if hardware is booted, identified and initialized.")
public boolean isCANDevicesReady()
@Command(type=QUERY,
description="Return true if this main module controls real hardware.")
public boolean controlRealHardware()
@Command(level=1,
description="Return a printed list of CANopen hardware that this subsystem manages.",
type=QUERY)
public String printHardwareList()
@Command(type=QUERY,
level=1,
description="Return the list if initialized hardware for debug purpose.")
public String printHardwareState()
@Command(level=1,
description="Return the list of CANopen hardware that this subsystem manages.",
type=QUERY)
public List<String> listHardwareNames()
@Command(level=1,
description="Return the list of LOADER CANopen hardware that this subsystem manages.",
type=QUERY)
public List<String> listLoaderHardwareNames()
@Command(type=QUERY,
description="Return the list of names of filters that this subsystem manages.",
level=1,
alias="listFilterNames")
public List<String> getFilterNames()
@Command(type=QUERY,
level=0,
description="Update state in reading sensors.")
public void updateStateWithSensors()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Update FCS state and FCS readyness state and publishes on the status bus.")
public void updateFCSState()
public TcpProxyInterface getTcpProxy()
public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal signal)
signal in interface org.lsst.ccs.framework.SignalHandlersignal in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="For tests purpose only - raise an ALERT.")
public void simulateAlert(String errorId,
String alarmMsg)
errorId - alarmMsg - Copyright © 2016 LSST. All rights reserved.