public class BridgeToCanOpenHardware extends org.lsst.ccs.framework.Module implements BridgeToHardware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
configurationChecked |
protected boolean |
hardwareInitialized |
protected Map<String,PieceOfHardware> |
hardwareMapByName |
protected CanOpenProxy |
tcpProxy |
| Constructor and Description |
|---|
BridgeToCanOpenHardware(CanOpenProxy tcpProxy) |
| Modifier and Type | Method and Description |
|---|---|
CanOpenProxy |
getTcpProxy() |
void |
initModule() |
boolean |
isCANDevicesReady()
returns true if the hardware is booted, identified and initialized.
|
boolean |
isCWrapperConnected()
This method returns true if the C-Wrapper is connected to the tcp proxy.
|
boolean |
isRealHardware()
This methods has to be overridden in a simulation context.
|
String |
printHardwareList() |
PDOStorage |
readPDOs() |
void |
startServer() |
void |
startThreadReader() |
String |
toString() |
getNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangeprotected CanOpenProxy tcpProxy
protected boolean configurationChecked
protected boolean hardwareInitialized
protected final Map<String,PieceOfHardware> hardwareMapByName
public BridgeToCanOpenHardware(CanOpenProxy tcpProxy)
@Command(type=QUERY,
level=1,
description="print my hardware list; for tests")
public String printHardwareList()
public CanOpenProxy getTcpProxy()
getTcpProxy in interface BridgeToHardwarepublic void startServer()
startServer in interface BridgeToHardwarepublic void startThreadReader()
startThreadReader in interface BridgeToHardwarepublic boolean isCWrapperConnected()
isCWrapperConnected in interface BridgeToHardwarepublic boolean isCANDevicesReady()
isCANDevicesReady in interface BridgeToHardwarepublic boolean isRealHardware()
isRealHardware in interface BridgeToHardwarepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic PDOStorage readPDOs()
readPDOs in interface BridgeToHardwareCopyright © 2016 LSST. All rights reserved.