public abstract 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> |
hardwareMap |
protected CanOpenProxy |
tcpProxy |
| Constructor and Description |
|---|
BridgeToCanOpenHardware(String aName,
int aTickMillis,
CanOpenProxy tcpProxy) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMatos() |
CanOpenProxy |
getTcpProxy() |
void |
initModule() |
boolean |
isCWrapperConnected()
This method returns true if the C-Wrapper is connected to the tcp proxy.
|
boolean |
isHardwareReady()
returns true if the hardware is booted, identified and initialized.
|
boolean |
isRealHardware() |
abstract PieceOfHardware[] |
listHardware()
This method returns the list of hardware that this bridge will manage.
|
void |
printChildren() |
CanOpenProxy.PDOStorage |
readPDOs() |
Object |
sendCanOpen(String command)
For engineering mode, this method can be used to send Can Open commands
to the Wrapper.
|
void |
startServer() |
void |
startThreadReader() |
String |
toString() |
alias, change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, 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 CanOpenProxy tcpProxy
protected boolean configurationChecked
protected boolean hardwareInitialized
protected Map<String,PieceOfHardware> hardwareMap
public BridgeToCanOpenHardware(String aName, int aTickMillis, CanOpenProxy tcpProxy)
public abstract PieceOfHardware[] listHardware()
@Command(type=QUERY,
level=1,
description="print my children; for tests")
public void printChildren()
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 isHardwareReady()
isHardwareReady in interface BridgeToHardwarepublic boolean isRealHardware()
isRealHardware in interface BridgeToHardwarepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void checkMatos()
throws HardwareNotDetectedException,
HardwareConfigurationException
public Object sendCanOpen(String command) throws InterruptedException, TimeoutException, org.lsst.ccs.bus.BadCommandException
command - A Can Open command that the Wrapper should understand.InterruptedExceptionTimeoutExceptionorg.lsst.ccs.bus.BadCommandExceptionpublic CanOpenProxy.PDOStorage readPDOs() throws HardwareException, org.lsst.ccs.bus.BadCommandException
readPDOs in interface BridgeToHardwareHardwareExceptionorg.lsst.ccs.bus.BadCommandExceptionCopyright © 2014 LSST. All Rights Reserved.