public abstract class MainModule
extends org.lsst.ccs.framework.Module
| Modifier and Type | Field and Description |
|---|---|
protected BridgeToHardware |
bridge |
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
protected AtomicBoolean |
haltRequired |
protected boolean |
hardwareReady |
| Constructor and Description |
|---|
MainModule(String aName,
int aTickMillis,
BridgeToHardware bridge) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
controlRealHardware() |
void |
initModule() |
boolean |
isHardwareReady()
This methods updates the boolean hardwareReady from the hardware bridge.
|
String |
listHardware()
This method returns the list of hardware that this bridge will manage.
|
String |
toString() |
alias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected static final org.lsst.ccs.utilities.logging.Logger fcslog
protected BridgeToHardware bridge
protected boolean hardwareReady
protected AtomicBoolean haltRequired
public MainModule(String aName, int aTickMillis, BridgeToHardware bridge)
public void initModule()
initModule in class org.lsst.ccs.framework.Module@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 can open hardware that this subsystem manage.",
type=QUERY)
public String listHardware()
Copyright © 2014 LSST. All rights reserved.