A C D E F G H I J L M N O P R S T W

A

addAddressingHandler(AddressingHandler, byte) - Static method in class josx.rcxcomm.LNP
Register an integrity handler to process incoming addressing packets for a specific port.
addIntegrityHandler(IntegrityHandler) - Static method in class josx.rcxcomm.LNP
Register an integrity handler to process incoming broadcasts
AddressingHandler - Interface in josx.rcxcomm
An interface for processing incoming addressing packets on specific ports.
addressingWrite(byte[], int, byte, byte) - Static method in class josx.rcxcomm.LNP
Sends packet of up to 59 bytes to the destination address from the source address.

C

close() - Method in class josx.rcxcomm.F7Handler
Close the Tower.
close() - Method in class josx.rcxcomm.LLCHandler
Close the Tower.
close() - Method in class josx.rcxcomm.LNPHandler
Close the Tower.
close() - Method in class josx.rcxcomm.PacketHandler
Close this packet handler and all lower layers.
close() - Method in class josx.rcxcomm.RCXAbstractPort
Closes this RCXPort, stopping the Listener thread.
close() - Method in class josx.rcxcomm.RCXBean
Close this RCX bean.
close() - Method in class josx.rcxcomm.Tower
Close the tower
closeTower() - Method in class josx.rcxcomm.Tower
Close tower.

D

DEFAULT_READ_TIMEOUT - Static variable in class josx.rcxcomm.Tower
 

E

error() - Method in class josx.rcxcomm.RCXRemote
 
errorMessage(int) - Static method in exception josx.rcxcomm.TowerException
Converts an status code to a human readable string.

F

F7DeliveryHandler - Class in josx.rcxcomm
A packet handler that attempts (but doesn't fully succeed in) reliable delivery for F7 Lego firmware opcode packets.
F7DeliveryHandler(PacketHandler) - Constructor for class josx.rcxcomm.F7DeliveryHandler
 
F7Handler - Class in josx.rcxcomm
Packet handler that uses the Lego Firmware F7 (set Message) opcodes.
finalize() - Method in class josx.rcxcomm.RCXBean
 
free(Object) - Method in class josx.rcxcomm.RCXBean
Make the RCX bean available for other threads.

G

getComPort() - Method in class josx.rcxcomm.RCXBean
Getter for the property "ComPort".
getError() - Method in class josx.rcxcomm.F7Handler
Get the last error on the Tower
getError() - Method in class josx.rcxcomm.LLCHandler
Get the last error on the Tower
getError() - Method in class josx.rcxcomm.LNPHandler
Get the last error on the Tower
getError() - Method in class josx.rcxcomm.PacketHandler
Get the last error.
getError() - Method in class josx.rcxcomm.Tower
Deprecated. use exception handling instead of status codes
getInputStream() - Method in class josx.rcxcomm.RCXAbstractPort
Returns an input stream for this RCXPort.
getLNP(String) - Static method in class josx.rcxcomm.LNP
 
getOutputStream() - Method in class josx.rcxcomm.RCXAbstractPort
Returns an output stream for this RCXPort.
getTimeOut() - Method in class josx.rcxcomm.RCXAbstractPort
Getter for property timeOut.

H

HttpProxy - Class in josx.rcxcomm
A Proxy for sending HTTP requests to the RCX.
HttpProxy(int, String) - Constructor for class josx.rcxcomm.HttpProxy
 

I

in - Variable in class josx.rcxcomm.RCXRemote
 
IntegrityHandler - Interface in josx.rcxcomm
An interface for processing incoming broadcasts of LNP integrity packets.
integrityWrite(byte[], int) - Static method in class josx.rcxcomm.LNP
Broadcasts an integrity packet of up to 61 bytes
isAckAvailable() - Method in class josx.rcxcomm.LLCHandler
Check if an Ack is available
isAckAvailable() - Method in class josx.rcxcomm.PacketHandler
Check if an ack is available
isAddressing() - Method in class josx.rcxcomm.LNPHandler
Test if last received packet is addressing (or integrity)
isAddressing() - Method in class josx.rcxcomm.LNPIntegrityHandler
Test if last packet is an adressing (or integrity) packet
isPacketAvailable() - Method in class josx.rcxcomm.F7DeliveryHandler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.F7Handler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.LLCHandler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.LLCReliableHandler
Check if a packet is available.
isPacketAvailable() - Method in class josx.rcxcomm.LNPAddressingHandler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.LNPHandler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.LNPIntegrityHandler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.PacketHandler
Check if a packet is available
isRCXAlive() - Method in class josx.rcxcomm.Tower
Check if RCX is alive
isUSB() - Method in class josx.rcxcomm.Tower
Is tower an usb tower?.

J

josx.rcxcomm - package josx.rcxcomm
 
josx.rcxcomm.remotecontrol - package josx.rcxcomm.remotecontrol
 

L

LLCHandler - Class in josx.rcxcomm
Packet handler than implement the LLC packet protocol.
LLCHandler(String) - Constructor for class josx.rcxcomm.LLCHandler
 
LLCReliableHandler - Class in josx.rcxcomm
A Packet handler that guarantees reliable delivery using checksums, acks, and a single bit sequence number.
LLCReliableHandler(PacketHandler) - Constructor for class josx.rcxcomm.LLCReliableHandler
 
LNP - Class in josx.rcxcomm
An interface for sending and receiving Lego Network Protocol addressing and integrity layer packets.
LNPAddressingHandler - Class in josx.rcxcomm
Packet handler that implements LNP addressing.
LNPAddressingHandler(PacketHandler) - Constructor for class josx.rcxcomm.LNPAddressingHandler
 
LNPHandler - Class in josx.rcxcomm
A Packet handler that implements the outer LNP packet format.
LNPHandler(String) - Constructor for class josx.rcxcomm.LNPHandler
Creates an LNP packet handler and opens the tower
LNPIntegrityHandler - Class in josx.rcxcomm
Packet handler that implements simple checksums.
LNPIntegrityHandler(PacketHandler, byte) - Constructor for class josx.rcxcomm.LNPIntegrityHandler
Create a packet handler for broadcast or addressing integrity packets
lock(Object) - Method in class josx.rcxcomm.RCXBean
Create a lock of this the RCX bean.
lowerHandler - Variable in class josx.rcxcomm.PacketHandler
 

M

main(String[]) - Static method in class josx.rcxcomm.HttpProxy
 
main(String[]) - Static method in class josx.rcxcomm.SocketProxy
 
MESSAGE1 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MESSAGE2 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MESSAGE3 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
METHOD_JOSX_VISION_RCX_BACKWARD_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_BACKWARD_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_CONTROL_MOTORS - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_FORWARD_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_FORWARD_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_PLAY_TONE - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SCAN_LEFT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SCAN_LEFT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SCAN_RIGHT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SCAN_RIGHT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SET_POWER - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SPIN_LEFT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SPIN_LEFT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SPIN_RIGHT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_SPIN_RIGHT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_STOP - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TILT_DOWN_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TILT_UP_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TURN_LEFT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TURN_LEFT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TURN_RIGHT_I - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
METHOD_JOSX_VISION_RCX_TURN_RIGHT_V - Static variable in interface josx.rcxcomm.RemoteVisionConstants
 
MOTOR_A_DOWN - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MOTOR_A_UP - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MOTOR_B_DOWN - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MOTOR_B_UP - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MOTOR_C_DOWN - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
MOTOR_C_UP - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 

N

NONE - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 

O

open(byte, byte) - Method in class josx.rcxcomm.LNPAddressingHandler
Set the source and destination for this connection
open(byte, byte) - Method in class josx.rcxcomm.PacketHandler
Set the source and destination for this connection.
open(String, boolean) - Method in class josx.rcxcomm.Tower
Open the tower
openTower(boolean) - Method in class josx.rcxcomm.Tower
Open the tower.
out - Variable in class josx.rcxcomm.RCXRemote
 

P

PacketHandler - Class in josx.rcxcomm
Abstract packet handler.
PacketHandler() - Constructor for class josx.rcxcomm.PacketHandler
 
PacketHandler(PacketHandler) - Constructor for class josx.rcxcomm.PacketHandler
 
packetHandler - Variable in class josx.rcxcomm.RCXAbstractPort
 
processAddressingPacket(byte[], int, byte) - Method in interface josx.rcxcomm.AddressingHandler
Process the adressing packet.
processIntegrityPacket(byte[], int) - Method in interface josx.rcxcomm.IntegrityHandler
Process the broadcast integrity packet.
PROGRAM1 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
PROGRAM2 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
PROGRAM3 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
PROGRAM4 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
PROGRAM5 - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 

R

RCXAbstractPort - Class in josx.rcxcomm
RCXAbstractPort provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU RCXAbstractPort implements input and output stream handling and input buffering.
RCXAbstractPort(PacketHandler) - Constructor for class josx.rcxcomm.RCXAbstractPort
Constructor for the RCXAbstractPort.
RCXAbstractPort(String, PacketHandler) - Constructor for class josx.rcxcomm.RCXAbstractPort
Constructor for a named port (eg com1 or usb).
RCXBean - Class in josx.rcxcomm
Handles communication with a LEGO RCX Based on original code by the LEGO3 Team at DTU-IAU
RCXBean() - Constructor for class josx.rcxcomm.RCXBean
Creates new RCXBean
RCXF7Port - Class in josx.rcxcomm
RCXF7Port provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU This version of RCXPort uses Serial comms, not low-level comms.
RCXF7Port(String) - Constructor for class josx.rcxcomm.RCXF7Port
 
RCXLNPAddressingPort - Class in josx.rcxcomm
RCXLNPAddressingPort provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU This version of RCXPort supports the Lego Network protocol (LNP) addressing layer.
RCXLNPAddressingPort(String, byte, byte) - Constructor for class josx.rcxcomm.RCXLNPAddressingPort
 
RCXLNPPort - Class in josx.rcxcomm
RCXLNPPort provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU This version of RCXPort uses the Legos Network protocol (LNP).
RCXLNPPort(String) - Constructor for class josx.rcxcomm.RCXLNPPort
 
RCXPort - Class in josx.rcxcomm
RCXPort provides an interface similar to java.net.Socket Adapted from original code created by the LEGO3 Team at DTU-IAU Uses Reliable low-level comms for communication.
RCXPort(String) - Constructor for class josx.rcxcomm.RCXPort
 
RCXRemote - Class in josx.rcxcomm
Utility class to support remote execution.
RCXRemote(String) - Constructor for class josx.rcxcomm.RCXRemote
 
read(byte[], int) - Method in class josx.rcxcomm.Tower
Deprecated. do not call native methods, use #readBytes instead
readBytes(byte[]) - Method in class josx.rcxcomm.Tower
Low-level read.
readBytes(byte[], int) - Method in class josx.rcxcomm.Tower
Low-level read.
receive() - Method in class josx.rcxcomm.RCXBean
Receive a byte from the RCX.
receive(int) - Method in class josx.rcxcomm.RCXBean
Receive n bytes from the RCX.
receive(byte[], int) - Method in class josx.rcxcomm.Tower
Deprecated. do not call native methods, use #receivePacket instead
receiveAck(byte[]) - Method in class josx.rcxcomm.LLCHandler
Receive a ack.
receiveAck(byte[]) - Method in class josx.rcxcomm.PacketHandler
 
receiveInt() - Method in class josx.rcxcomm.RCXBean
Receive a byte from the RCX.
receivePacket(byte[]) - Method in class josx.rcxcomm.F7DeliveryHandler
Receive a packet, and send an ack.
receivePacket(byte[]) - Method in class josx.rcxcomm.F7Handler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LLCHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LLCReliableHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPAddressingHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPIntegrityHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.PacketHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.Tower
Receive a packet.
receivePacket(byte[], int) - Method in class josx.rcxcomm.Tower
Receive a packet.
RemoteControlMessenger - Class in josx.rcxcomm.remotecontrol
This class is a Messenger for remote control messages.
RemoteControlMessenger(String) - Constructor for class josx.rcxcomm.remotecontrol.RemoteControlMessenger
Creates a new instance of RemoteControlMessenger.
RemoteVisionConstants - Interface in josx.rcxcomm
 
reset() - Method in class josx.rcxcomm.LLCReliableHandler
Reset sequence numbers.
reset() - Method in class josx.rcxcomm.PacketHandler
Reset sequence numbers for this handler
reset() - Method in class josx.rcxcomm.RCXAbstractPort
Resets sequence numbers for this port
run() - Method in class josx.rcxcomm.LNP
Background thread to listen for incoming packets and call the appropriate listeners.

S

send(byte) - Method in class josx.rcxcomm.RCXBean
Send a byte to the RCX.
send(byte[]) - Method in class josx.rcxcomm.RCXBean
Send a byte array to the RCX
send(byte[]) - Method in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
sends a message via the LEGO Tower to the RCX
send(byte[], int) - Method in class josx.rcxcomm.Tower
Deprecated. do not call native methods, use #sendPacket instead
sendInt(int) - Method in class josx.rcxcomm.RCXBean
Send an integer to the RCX.
sendPacket(byte[], int) - Method in class josx.rcxcomm.F7DeliveryHandler
Send a packet, checking for returned ack.
sendPacket(byte[], int) - Method in class josx.rcxcomm.F7Handler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LLCHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LLCReliableHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LNPAddressingHandler
Send a packet, adding the source and destination addresses
sendPacket(byte[], int) - Method in class josx.rcxcomm.LNPHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LNPIntegrityHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.PacketHandler
Send a packet.
sendPacket(byte[]) - Method in class josx.rcxcomm.Tower
Send a packet to the RCX, e.g 0x10 for ping.
sendPacketReceivePacket(byte[], byte[], int) - Method in class josx.rcxcomm.Tower
Send a packet and retrieve answer.
sendPacketReceivePacket(byte[], byte[], int, int) - Method in class josx.rcxcomm.Tower
Send a packet and retrieve answer.
setComPort(String) - Method in class josx.rcxcomm.RCXBean
Change or set which comPort should be used for communication with the RCX
setListen(boolean) - Method in class josx.rcxcomm.F7Handler
Set or unset the listen flag to keep a PC serial tower alive
setListen(boolean) - Method in class josx.rcxcomm.LLCHandler
Set or unset the listen flag to keep a PC serial tower alive
setListen(boolean) - Method in class josx.rcxcomm.LNPHandler
Set or unset the listen flag to keep a PC serial tower alive
setListen(boolean) - Method in class josx.rcxcomm.PacketHandler
Set or unset the listen flag to keep a PC serial tower alive
setListen(boolean) - Method in class josx.rcxcomm.RCXAbstractPort
Switch listening on and off on the PC, for a serial tower.
setOp(byte) - Method in class josx.rcxcomm.LNPIntegrityHandler
Set the opcode for the next write
setTimeOut(int) - Method in class josx.rcxcomm.RCXAbstractPort
Setter for property timeOut.
SocketProxy - Class in josx.rcxcomm
A Proxy for the RCX Socket interface.
SOUND - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 
start(String) - Method in class josx.rcxcomm.RCXRemote
 
startListening(byte) - Static method in class josx.rcxcomm.LNP
Start listening for incoming broadcasts and addressing packets.
stop() - Method in class josx.rcxcomm.RCXRemote
 
STOP - Static variable in class josx.rcxcomm.remotecontrol.RemoteControlMessenger
 

T

Tower - Class in josx.rcxcomm
Low-level interface to the Lego IR Tower Used by RCXPort to send and receive messages to and from the RCX.
Tower(String) - Constructor for class josx.rcxcomm.Tower
Create the tower class.
TowerException - Exception in josx.rcxcomm
Exception of Tower.
TowerException(String) - Constructor for exception josx.rcxcomm.TowerException
 
TowerException(int) - Constructor for exception josx.rcxcomm.TowerException
 

W

write(byte[], int) - Method in class josx.rcxcomm.Tower
Deprecated. do not call native methods, use #writeBytes instead
writeBytes(byte[]) - Method in class josx.rcxcomm.Tower
Write low-level bytes to the tower, e.g 0xff550010ef10ef for ping.

A C D E F G H I J L M N O P R S T W