BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand Class Reference
Inheritance diagram for com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand:
Collaboration graph
[legend]

Public Member Functions

 GetValueCommand (int channel)
 
byte[] getCallingData ()
 
BowlerDatagram validate (BowlerDatagram data) throws InvalidResponseException
 
- Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractCommand
void setOpCode (String opCode)
 
String getOpCode ()
 
void setMethod (BowlerMethod method)
 
BowlerMethod getMethod ()
 
byte getLength ()
 
byte[] getBytes ()
 
String toString ()
 
void setData (ByteList data)
 
ByteList getCallingDataStorage ()
 
void setNamespaceIndex (int namespaceIndex)
 
int getNamespaceIndex ()
 

Private Attributes

int channel
 

Additional Inherited Members

- Static Public Member Functions inherited from com.neuronrobotics.sdk.common.BowlerAbstractCommand
static BowlerAbstractCommand parse (BowlerDatagram data)
 

Detailed Description

The Class GetValueCommand.

Definition at line 27 of file GetValueCommand.java.

Constructor & Destructor Documentation

◆ GetValueCommand()

com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand.GetValueCommand ( int  channel)

Member Function Documentation

◆ getCallingData()

byte [] com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand.getCallingData ( )

Get the data that will be used to call the RPC (i.e. parameters for the RPC). Each instance of a BAC should determine the correct method for generating this data.

Returns
the parameters for the RPC

Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractCommand.

Definition at line 47 of file GetValueCommand.java.

References com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand.channel, and com.neuronrobotics.sdk.common.ByteList.wrap().

Here is the call graph for this function:

◆ validate()

BowlerDatagram com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand.validate ( BowlerDatagram  data) throws InvalidResponseException

Determine if the return response was successful; throw an InvalidResponseExpection otherwise. Commands with more complicated validation should override this method and provide more specific checking.

Parameters
datathe data
Returns
the incoming response
Exceptions
InvalidResponseExceptionthe invalid response exception

Reimplemented from com.neuronrobotics.sdk.common.BowlerAbstractCommand.

Definition at line 55 of file GetValueCommand.java.

References com.neuronrobotics.sdk.common.BowlerAbstractCommand.data, and com.neuronrobotics.sdk.common.BowlerAbstractCommand.getOpCode().

Here is the call graph for this function:

Member Data Documentation

◆ channel

int com.neuronrobotics.sdk.commands.bcs.io.GetValueCommand.channel
private

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