BowlerKernel
|
Public Member Functions | |
boolean | connect () |
void | addNamespace (String nms) |
void | onAllResponse (BowlerDatagram data) |
void | onAsyncResponse (BowlerDatagram data) |
void | sendAsync (BowlerAbstractCommand command, int rpcIndexID) throws IOException |
void | sendSyncResponse (BowlerAbstractCommand command) throws IOException |
void | sendPacketWithNoResponse (BowlerDatagram data) throws IOException |
abstract void | onSynchronusRecive (BowlerDatagram data) |
![]() | |
boolean | isAvailable () throws InvalidConnectionException |
void | addConnectionEventListener (final IDeviceConnectionEventListener l) |
void | removeConnectionEventListener (IDeviceConnectionEventListener l) |
void | setConnection (BowlerAbstractConnection connection) |
void | disconnect () |
BowlerAbstractConnection | getConnection () |
void | setAddress (MACAddress address) |
MACAddress | getAddress () |
BowlerDatagram | send (BowlerAbstractCommand command) throws NoConnectionAvailableException, InvalidResponseException |
BowlerDatagram | send (BowlerAbstractCommand command, int retry) throws NoConnectionAvailableException, InvalidResponseException |
Object[] | send (String namespace, BowlerMethod method, String rpcString, Object[] arguments, int retry) throws DeviceConnectionException |
Object[] | send (String namespace, BowlerMethod method, String rpcString, Object[] arguments) throws DeviceConnectionException |
boolean | ping () |
boolean | ping (boolean switchParser) |
ArrayList< ByteList > | getRevisions () |
ArrayList< String > | getNamespaces () |
boolean | hasNamespace (String string) |
void | startHeartBeat () |
void | startHeartBeat (long msHeartBeatTime) |
void | stopHeartBeat () |
void | setThreadedUpstreamPackets (boolean up) |
ArrayList< RpcEncapsulation > | getRpcList (String namespace) |
void | loadRpcList () |
boolean | isKeepAlive () |
void | setKeepAlive (boolean keepAlive) |
long | getLastPacketTime () |
void | setLastPacketTime (long lastPacketTime) |
String | getScriptingName () |
void | setScriptingName (String scriptingName) |
ArrayList< IDeviceConnectionEventListener > | getDisconnectListeners () |
Private Attributes | |
String | core = "bcs.core.*;0.3;;" |
ArrayList< String > | namespaces = new ArrayList<String>() |
Additional Inherited Members | |
![]() | |
void | fireDisconnectEvent () |
void | fireConnectEvent () |
The Class BowlerAbstractDeviceServer.
Definition at line 19 of file BowlerAbstractDeviceServer.java.
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.addNamespace | ( | String | nms | ) |
Adds the namespace.
nms | the nms |
Definition at line 42 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.namespaces.
Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.connect().
boolean com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.connect | ( | ) |
This method tells the connection object to start and connects the up and down streams pipes. Once this method is called and returns without exception, the device is ready to communicate with
InvalidConnectionException | the invalid connection exception |
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractDevice.
Definition at line 31 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.addNamespace(), com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.core, and com.neuronrobotics.sdk.common.BowlerAbstractDevice.isAvailable().
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onAllResponse | ( | BowlerDatagram | data | ) |
On all response.
data | the data |
Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractDevice.
Definition at line 50 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.ByteList.get(), com.neuronrobotics.sdk.common.BowlerDatagram.getData(), com.neuronrobotics.sdk.common.BowlerDatagram.getRPC(), com.neuronrobotics.sdk.common.Log.info(), com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.namespaces, com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onSynchronusRecive(), com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.sendSyncResponse(), and com.neuronrobotics.sdk.common.ByteList.size().
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onAsyncResponse | ( | BowlerDatagram | data | ) |
On async response.
data | the data |
Implements com.neuronrobotics.sdk.common.IBowlerDatagramListener.
Definition at line 87 of file BowlerAbstractDeviceServer.java.
|
abstract |
On synchronus recive.
data | the data |
Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onAllResponse().
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.sendAsync | ( | BowlerAbstractCommand | command, |
int | rpcIndexID | ||
) | throws IOException |
Send a sendable to the getConnection().
command | the command |
rpcIndexID | the rpc index id |
IOException | Signals that an I/O exception has occurred. |
Definition at line 99 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.BowlerAbstractDevice.getAddress(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.getConnection(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.getDataOuts(), and com.neuronrobotics.sdk.common.BowlerAbstractConnection.sendAsync().
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.sendPacketWithNoResponse | ( | BowlerDatagram | data | ) | throws IOException |
Send packet with no response.
data | the data |
IOException | Signals that an I/O exception has occurred. |
Definition at line 126 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.BowlerAbstractDevice.getConnection(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.getDataOuts(), and com.neuronrobotics.sdk.common.BowlerAbstractConnection.sendAsync().
void com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.sendSyncResponse | ( | BowlerAbstractCommand | command | ) | throws IOException |
Send a sendable to the getConnection().
command | the command |
IOException | Signals that an I/O exception has occurred. |
Definition at line 113 of file BowlerAbstractDeviceServer.java.
References com.neuronrobotics.sdk.common.BowlerAbstractDevice.getAddress(), com.neuronrobotics.sdk.common.BowlerAbstractDevice.getConnection(), com.neuronrobotics.sdk.common.BowlerAbstractConnection.getDataOuts(), and com.neuronrobotics.sdk.common.BowlerAbstractConnection.sendAsync().
Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onAllResponse().
|
private |
The core.
Definition at line 22 of file BowlerAbstractDeviceServer.java.
Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.connect().
|
private |
The namespaces.
Definition at line 25 of file BowlerAbstractDeviceServer.java.
Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.addNamespace(), and com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServer.onAllResponse().