BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.common.RpcEncapsulation Class Reference
Collaboration diagram for com.neuronrobotics.sdk.common.RpcEncapsulation:
Collaboration graph
[legend]

Public Member Functions

 RpcEncapsulation (int namespaceIndex, String namespace, String rpc, BowlerMethod downStreamMethod, BowlerDataType[] downstreamArguments, BowlerMethod upStreamMethod, BowlerDataType[] upstreamArguments)
 
 RpcEncapsulation (int namespaceIndex, String namespace, String rpc, BowlerMethod downStreamMethod, BowlerDataType[] downstreamArguments, BowlerMethod upStreamMethod, BowlerDataType[] upstreamArguments, IBowlerCommandProcessor processor)
 
void setArguments (BowlerMethod downStreamMethod, BowlerDataType[] downstreamArguments, BowlerMethod upStreamMethod, BowlerDataType[] upstreamArguments)
 
BowlerAbstractCommand getCommand (Object[] doswnstreamData)
 
BowlerAbstractCommand getCommandUpstream (Object[] doswnstreamData)
 
BowlerAbstractCommand getCommand (Object[] doswnstreamData, BowlerDataType[] arguments)
 
Object[] parseResponse (BowlerDatagram datagram)
 
Object[] parseResponseDownstream (BowlerDatagram datagram)
 
Object[] parseResponse (BowlerDatagram datagram, BowlerDataType[] arguments)
 
String getNamespace ()
 
void setNamespace (String namespace)
 
String getRpc ()
 
void setRpc (String rpc)
 
BowlerMethod getDownstreamMethod ()
 
void setDownStreamMethod (BowlerMethod method)
 
BowlerDataType[] getDownstreamArguments ()
 
void setDownstreamArguments (BowlerDataType[] downstreamArguments)
 
BowlerDataType[] getUpstreamArguments ()
 
void setUpstreamArguments (BowlerDataType[] upstreamArguments)
 
BowlerMethod getUpStreamMethod ()
 
void setUpStreamMethod (BowlerMethod upStreamMethod)
 
String toString ()
 
int getNamespaceIndex ()
 
void setNamespaceIndex (int namespaceIndex)
 
IBowlerCommandProcessor getProcessor ()
 
void setProcessor (IBowlerCommandProcessor processor)
 

Private Attributes

String rpc
 
BowlerMethod method
 
BowlerDataType[] downstreamArguments
 
BowlerDataType[] upstreamArguments
 
BowlerMethod upStreamMethod
 
int namespaceIndex
 
IBowlerCommandProcessor processor
 

Detailed Description

The Class RpcEncapsulation.

Definition at line 9 of file RpcEncapsulation.java.

Constructor & Destructor Documentation

◆ RpcEncapsulation() [1/2]

com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation ( int  namespaceIndex,
String  namespace,
String  rpc,
BowlerMethod  downStreamMethod,
BowlerDataType[]  downstreamArguments,
BowlerMethod  upStreamMethod,
BowlerDataType[]  upstreamArguments 
)

This is an encapsulation object for a given RPC.

Parameters
namespaceIndexthe namespace index
namespaceThe corosponding Namespace
rpcThe 4 byte RPC code
downStreamMethodThe method for sending messages
downstreamArgumentsThe array of data types for a downstream message
upStreamMethodThe return method type
upstreamArgumentsTHe return method arguments

Definition at line 46 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments, com.neuronrobotics.sdk.common.RpcEncapsulation.namespaceIndex, com.neuronrobotics.sdk.common.RpcEncapsulation.rpc, com.neuronrobotics.sdk.common.RpcEncapsulation.upstreamArguments, and com.neuronrobotics.sdk.common.RpcEncapsulation.upStreamMethod.

◆ RpcEncapsulation() [2/2]

com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation ( int  namespaceIndex,
String  namespace,
String  rpc,
BowlerMethod  downStreamMethod,
BowlerDataType[]  downstreamArguments,
BowlerMethod  upStreamMethod,
BowlerDataType[]  upstreamArguments,
IBowlerCommandProcessor  processor 
)

This is an encapsulation object for a given RPC.

Parameters
namespaceIndexthe namespace index
namespaceThe corosponding Namespace
rpcThe 4 byte RPC code
downStreamMethodThe method for sending messages
downstreamArgumentsThe array of data types for a downstream message
upStreamMethodThe return method type
upstreamArgumentsTHe return method arguments
processorthe processor

Definition at line 64 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments, com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments(), com.neuronrobotics.sdk.common.RpcEncapsulation.setNamespace(), com.neuronrobotics.sdk.common.RpcEncapsulation.setNamespaceIndex(), com.neuronrobotics.sdk.common.RpcEncapsulation.setProcessor(), com.neuronrobotics.sdk.common.RpcEncapsulation.setRpc(), com.neuronrobotics.sdk.common.RpcEncapsulation.upstreamArguments, and com.neuronrobotics.sdk.common.RpcEncapsulation.upStreamMethod.

Here is the call graph for this function:

Member Function Documentation

◆ getCommand() [1/2]

BowlerAbstractCommand com.neuronrobotics.sdk.common.RpcEncapsulation.getCommand ( Object[]  doswnstreamData)

Gets the command.

Parameters
doswnstreamDatathe doswnstream data
Returns
the command

Definition at line 95 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments.

Referenced by com.neuronrobotics.sdk.common.BowlerAbstractConnection.getCommand(), and com.neuronrobotics.sdk.common.RpcEncapsulation.getCommandUpstream().

◆ getCommand() [2/2]

BowlerAbstractCommand com.neuronrobotics.sdk.common.RpcEncapsulation.getCommand ( Object[]  doswnstreamData,
BowlerDataType[]  arguments 
)

◆ getCommandUpstream()

BowlerAbstractCommand com.neuronrobotics.sdk.common.RpcEncapsulation.getCommandUpstream ( Object[]  doswnstreamData)

Gets the command upstream.

Parameters
doswnstreamDatathe doswnstream data
Returns
the command upstream

Definition at line 105 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.getCommand(), and com.neuronrobotics.sdk.common.RpcEncapsulation.upstreamArguments.

Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServerNamespace.process().

Here is the call graph for this function:

◆ getDownstreamArguments()

BowlerDataType [] com.neuronrobotics.sdk.common.RpcEncapsulation.getDownstreamArguments ( )

◆ getDownstreamMethod()

BowlerMethod com.neuronrobotics.sdk.common.RpcEncapsulation.getDownstreamMethod ( )

◆ getNamespace()

String com.neuronrobotics.sdk.common.RpcEncapsulation.getNamespace ( )

Gets the namespace.

Returns
the namespace

Definition at line 344 of file RpcEncapsulation.java.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.toString().

◆ getNamespaceIndex()

int com.neuronrobotics.sdk.common.RpcEncapsulation.getNamespaceIndex ( )

Gets the namespace index.

Returns
the namespace index

Definition at line 487 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.namespaceIndex.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.getCommand().

◆ getProcessor()

IBowlerCommandProcessor com.neuronrobotics.sdk.common.RpcEncapsulation.getProcessor ( )

◆ getRpc()

String com.neuronrobotics.sdk.common.RpcEncapsulation.getRpc ( )

◆ getUpstreamArguments()

BowlerDataType [] com.neuronrobotics.sdk.common.RpcEncapsulation.getUpstreamArguments ( )

◆ getUpStreamMethod()

BowlerMethod com.neuronrobotics.sdk.common.RpcEncapsulation.getUpStreamMethod ( )

◆ parseResponse() [1/2]

Object [] com.neuronrobotics.sdk.common.RpcEncapsulation.parseResponse ( BowlerDatagram  datagram)

◆ parseResponse() [2/2]

Object [] com.neuronrobotics.sdk.common.RpcEncapsulation.parseResponse ( BowlerDatagram  datagram,
BowlerDataType[]  arguments 
)

◆ parseResponseDownstream()

Object [] com.neuronrobotics.sdk.common.RpcEncapsulation.parseResponseDownstream ( BowlerDatagram  datagram)

Parses the response downstream.

Parameters
datagramthe datagram
Returns
the object[]

Definition at line 235 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments, and com.neuronrobotics.sdk.common.RpcEncapsulation.parseResponse().

Referenced by com.neuronrobotics.sdk.common.device.server.BowlerAbstractDeviceServerNamespace.process().

Here is the call graph for this function:

◆ setArguments()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments ( BowlerMethod  downStreamMethod,
BowlerDataType[]  downstreamArguments,
BowlerMethod  upStreamMethod,
BowlerDataType[]  upstreamArguments 
)

Sets the arguments.

Parameters
downStreamMethodthe down stream method
downstreamArgumentsthe downstream arguments
upStreamMethodthe up stream method
upstreamArgumentsthe upstream arguments

Definition at line 82 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.setDownstreamArguments(), com.neuronrobotics.sdk.common.RpcEncapsulation.setDownStreamMethod(), com.neuronrobotics.sdk.common.RpcEncapsulation.setUpstreamArguments(), and com.neuronrobotics.sdk.common.RpcEncapsulation.setUpStreamMethod().

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation().

Here is the call graph for this function:

◆ setDownstreamArguments()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setDownstreamArguments ( BowlerDataType[]  downstreamArguments)

Sets the downstream arguments.

Parameters
downstreamArgumentsthe new downstream arguments

Definition at line 408 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments().

◆ setDownStreamMethod()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setDownStreamMethod ( BowlerMethod  method)

Sets the down stream method.

Parameters
methodthe new down stream method

Definition at line 389 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.method.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments().

◆ setNamespace()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setNamespace ( String  namespace)

Sets the namespace.

Parameters
namespacethe new namespace

Definition at line 353 of file RpcEncapsulation.java.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation().

◆ setNamespaceIndex()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setNamespaceIndex ( int  namespaceIndex)

Sets the namespace index.

Parameters
namespaceIndexthe new namespace index

Definition at line 496 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.namespaceIndex.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation().

◆ setProcessor()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setProcessor ( IBowlerCommandProcessor  processor)

Sets the processor.

Parameters
processorthe new processor

Definition at line 514 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.processor.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation().

◆ setRpc()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setRpc ( String  rpc)

Sets the rpc.

Parameters
rpcthe new rpc

Definition at line 371 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.rpc.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.RpcEncapsulation().

◆ setUpstreamArguments()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setUpstreamArguments ( BowlerDataType[]  upstreamArguments)

Sets the upstream arguments.

Parameters
upstreamArgumentsthe new upstream arguments

Definition at line 431 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.upstreamArguments.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments().

◆ setUpStreamMethod()

void com.neuronrobotics.sdk.common.RpcEncapsulation.setUpStreamMethod ( BowlerMethod  upStreamMethod)

Sets the up stream method.

Parameters
upStreamMethodthe new up stream method

Definition at line 456 of file RpcEncapsulation.java.

References com.neuronrobotics.sdk.common.RpcEncapsulation.upStreamMethod.

Referenced by com.neuronrobotics.sdk.common.RpcEncapsulation.setArguments().

◆ toString()

String com.neuronrobotics.sdk.common.RpcEncapsulation.toString ( )

Member Data Documentation

◆ downstreamArguments

BowlerDataType [] com.neuronrobotics.sdk.common.RpcEncapsulation.downstreamArguments
private

◆ method

BowlerMethod com.neuronrobotics.sdk.common.RpcEncapsulation.method
private

◆ namespaceIndex

int com.neuronrobotics.sdk.common.RpcEncapsulation.namespaceIndex
private

◆ processor

IBowlerCommandProcessor com.neuronrobotics.sdk.common.RpcEncapsulation.processor
private

◆ rpc

String com.neuronrobotics.sdk.common.RpcEncapsulation.rpc
private

◆ upstreamArguments

BowlerDataType [] com.neuronrobotics.sdk.common.RpcEncapsulation.upstreamArguments
private

◆ upStreamMethod

BowlerMethod com.neuronrobotics.sdk.common.RpcEncapsulation.upStreamMethod
private

The documentation for this class was generated from the following file: