A D E M N O R S U V W 

A

action - Variable in class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
 

D

DecodedControlAction - Class in ve.ucv.ciens.icaro.libnxtarcontrol
An immutable and pure data class that represents an action decoded from a protocol data message.
DecodedControlAction() - Constructor for class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
Create a new ControlAction object using DecodedControlAction#STOP as the default action, DecodedControlAction#MOTOR_ABC as motor flag, and 0 as default speed.
DecodedControlAction(DecodedControlAction.Action) - Constructor for class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
Create a new ControlAction object using the specified action.
DecodedControlAction(DecodedControlAction.Action, DecodedControlAction.Motor) - Constructor for class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
Create a new ControlAction object using the specified action and motor flag.
DecodedControlAction(DecodedControlAction.Action, DecodedControlAction.Motor, int) - Constructor for class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
Create a new ControlAction object using the specified action, motor flag and speed.
DecodedControlAction.Action - Enum in ve.ucv.ciens.icaro.libnxtarcontrol
All recognized actions.
DecodedControlAction.Motor - Enum in ve.ucv.ciens.icaro.libnxtarcontrol
All motor ports and possible combinations without repetitions.
decodeMessage(byte[]) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Decodes a protocol message encoded as a byte array of two elements as specified in the package definition.

E

encodeControlAction(DecodedControlAction) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Encodes a given DecodedControlAction into a two byte array.
executeControlAction(DecodedControlAction) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Executes an already decoded DecodedControlAction, calling the user operation listeners if needed.

M

motor - Variable in class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
 

N

NxtARControlProtocol - Class in ve.ucv.ciens.icaro.libnxtarcontrol
A wrapper around the NxtAR robot control protocol for the LejOS operating system.
NxtARControlProtocol(DataInputStream, DataOutputStream) - Constructor for class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Create a new ARControl object.

O

onListenerRegistered() - Method in interface ve.ucv.ciens.icaro.libnxtarcontrol.UserActionListener
Executes a set of instructions just after the listener has been registered with an NxtARControlProtocol instance.
onListenerRemoved() - Method in interface ve.ucv.ciens.icaro.libnxtarcontrol.UserActionListener
Executes a set of instructions just after the listener has been removed from an NxtARControlProtocol instance.
onUserAction1(DecodedControlAction.Motor, int) - Method in interface ve.ucv.ciens.icaro.libnxtarcontrol.UserActionListener
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_1.
onUserAction2(DecodedControlAction.Motor, int) - Method in interface ve.ucv.ciens.icaro.libnxtarcontrol.UserActionListener
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_2.
onUserAction3(DecodedControlAction.Motor, int) - Method in interface ve.ucv.ciens.icaro.libnxtarcontrol.UserActionListener
Executes a set of instructions when a DecodedControlAction is decoded with DecodedControlAction.Action.USER_3.

R

readAndExecuteMessage() - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Attempts to read, decode and execute a message, calling the user operation listeners if needed.
readRawControlMessage() - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Attempts to read a 2-byte message and returns it as is.
registerUserActionListener(UserActionListener) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Adds an UserActionListener to this object's listeners list calling it's onListenerRegistered() method.
removeUserActionListener(UserActionListener) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Removes an UserActionListener from this object's listeners list calling it's onListenerRemoved() method.

S

setInputStream(DataInputStream) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Changes the input stream associated with this ARControl to the input stream passed as parameter.
setOutputStream(DataOutputStream) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Changes the DataOutputStream associated with this ARControl to the output stream passed as parameter.
speed - Variable in class ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction
 

U

UserActionListener - Interface in ve.ucv.ciens.icaro.libnxtarcontrol
An object to be notified when an user action has been received in a protocol message.

V

valueOf(String) - Static method in enum ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction.Action
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction.Motor
Returns the enum constant of this type with the specified name.
values() - Static method in enum ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction.Action
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ve.ucv.ciens.icaro.libnxtarcontrol.DecodedControlAction.Motor
Returns an array containing the constants of this enum type, in the order they are declared.
ve.ucv.ciens.icaro.libnxtarcontrol - package ve.ucv.ciens.icaro.libnxtarcontrol
This package contains a wrapper library and reference implementation of the NxtAR robot control protocol for the LejOS operating system.

W

writeMessage(DecodedControlAction) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Encodes and writes a DecodedControlAction into the associated DataOutputStream if any.
writeRawControlMessage(byte[]) - Method in class ve.ucv.ciens.icaro.libnxtarcontrol.NxtARControlProtocol
Attempts to write a 2-byte message to the associated DataOutputStream if any.
A D E M N O R S U V W