
public abstract class MainModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridge |
protected static Logger |
fcslog |
protected AtomicBoolean |
haltRequired |
protected boolean |
hardwareReady |
protected AtomicBoolean |
stopRequired |
| Constructor and Description |
|---|
MainModule(String aName,
int aTickMillis,
BridgeToHardware bridge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
controlRealHardware() |
CanOpenProxyConfig |
getCanOpenHardwareFullState()
For the Can Open Hardware GUI.
|
AtomicBoolean |
getHaltRequired() |
AtomicBoolean |
getStopRequired() |
String |
getSubsystemState() |
CanOpenProxy |
getTcpProxy() |
void |
initModule() |
boolean |
isHardwareReady()
This methods updates the boolean hardwareReady from the hardware bridge.
|
String |
listHardware()
This method returns a String with the list of hardware that this bridge manages.
|
void |
postStart() |
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal signal) |
void |
simulateAlarm(String alarmMsg) |
String |
toString() |
void |
updateStateWithSensors() |
alias, getComponentDictionariesTree, getComponentTree, getContext, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, sendSignal, sendSignal, sendSignalWithTimeLimit, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getDictionary, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, proceduralWalk, publish, publish, publish, publish, publish, publish, start, treeWalkprotected static final Logger fcslog
protected BridgeToHardware bridge
protected boolean hardwareReady
protected AtomicBoolean haltRequired
protected AtomicBoolean stopRequired
public MainModule(String aName, int aTickMillis, 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 class org.lsst.ccs.framework.Moduleorg.lsst.ccs.HardwareException@Command(level=1, description="Return true if hardware is booted, identified and initialized.", type=QUERY) public boolean isHardwareReady()
@Command(type=QUERY, description="Return true if this main module controls real hardware.") public boolean controlRealHardware()
@Command(level=1, description="Return the list of CANopen hardware that this subsystem manages.", type=QUERY) public String listHardware()
public void updateStateWithSensors()
throws FcsHardwareException,
org.lsst.ccs.bus.ErrorInCommandExecutionException,
org.lsst.ccs.bus.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.bus.ErrorInCommandExecutionExceptionorg.lsst.ccs.bus.BadCommandException@Command(type=QUERY, level=0, description="The GUIs need that for the initialization.") public CanOpenProxyConfig getCanOpenHardwareFullState()
public CanOpenProxy getTcpProxy()
@Command(type=QUERY, level=0, description="Get the subsystem state.") public String getSubsystemState()
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 - raise an alarm.") public void simulateAlarm(String alarmMsg)
Copyright © 2015 LSST. All rights reserved.