public abstract class BridgeToCanOpenHardware extends org.lsst.ccs.framework.Module implements BridgeToHardware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
configurationChecked |
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
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 |
|---|---|
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() |
PieceOfHardware[] |
listHardware()
Return a list of the hardware this bridge is connected to.
|
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, getComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, percolateSignal, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, shutdownNow, signal, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected static final org.lsst.ccs.utilities.logging.Logger fcslog
protected CanOpenProxy tcpProxy
protected boolean configurationChecked
protected boolean hardwareInitialized
protected Map<String,PieceOfHardware> hardwareMap
public BridgeToCanOpenHardware(String aName, int aTickMillis, CanOpenProxy tcpProxy)
public 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 Object sendCanOpen(String command) throws InterruptedException, CanOpenCallTimeoutException, org.lsst.ccs.messaging.BadCommandException
command - A Can Open command that the Wrapper should understand.InterruptedExceptionCanOpenCallTimeoutExceptionorg.lsst.ccs.messaging.BadCommandExceptionpublic CanOpenProxy.PDOStorage readPDOs() throws FcsHardwareException, org.lsst.ccs.messaging.BadCommandException
readPDOs in interface BridgeToHardwareFcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandExceptionCopyright © 2015 LSST. All rights reserved.