A C E F G H I J L M 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 josx.rcxcomm.AddressingHandler.
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 255 bytes to the destination address from the source address.

C

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

E

error() - Static method in class josx.rcxcomm.RCXRemote
 

F

F7DeliveryHandler - class josx.rcxcomm.F7DeliveryHandler.
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 josx.rcxcomm.F7Handler.
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.Tower
Get the last OS error
getError() - Method in class josx.rcxcomm.PacketHandler
Get the last error.
getError() - Method in class josx.rcxcomm.LNPHandler
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.F7Handler
Get the last error on the Tower
getInputStream() - Method in class josx.rcxcomm.RCXAbstractPort
Returns an input stream for this RCXPort.
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.
getUsbFlag() - Method in class josx.rcxcomm.Tower
Getter for USB Flag

H

hexdump(String, byte[], int) - Method in class josx.rcxcomm.Tower
dump hex to standard out
HttpProxy - class josx.rcxcomm.HttpProxy.
A Proxy for sending HTTP requests to the RCX.
HttpProxy(int) - Constructor for class josx.rcxcomm.HttpProxy
 

I

in - Static variable in class josx.rcxcomm.RCXRemote
 
IntegrityHandler - interface josx.rcxcomm.IntegrityHandler.
An interface for processing incoming broadcasts of LNP integrity packets.
integrityWrite(byte[], int) - Static method in class josx.rcxcomm.LNP
Broadcasts an integrity packet
isAckAvailable() - Method in class josx.rcxcomm.PacketHandler
Check if an ack is available
isAckAvailable() - Method in class josx.rcxcomm.LLCHandler
Check if an Ack is available
isAddressing() - Method in class josx.rcxcomm.LNPIntegrityHandler
Test if last packet is an adressing (or integrity) packet
isAddressing() - Method in class josx.rcxcomm.LNPHandler
Test if last received packet is addressing (or integrity)
isAlive() - Method in class josx.rcxcomm.Tower
Check if RCX is alive
isPacketAvailable() - Method in class josx.rcxcomm.PacketHandler
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.LNPHandler
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.LLCReliableHandler
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.F7Handler
Check if a packet is available
isPacketAvailable() - Method in class josx.rcxcomm.F7DeliveryHandler
Check if a packet is available

J

josx.rcxcomm - package josx.rcxcomm
 

L

LLCHandler - class josx.rcxcomm.LLCHandler.
Packet handler than implement the LLC packet protocol.
LLCHandler() - Constructor for class josx.rcxcomm.LLCHandler
 
LLCReliableHandler - class josx.rcxcomm.LLCReliableHandler.
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 josx.rcxcomm.LNP.
An interface for sending and receiving Lego Network Protocol addressing and integrity layer packets.
LNPAddressingHandler - class josx.rcxcomm.LNPAddressingHandler.
Packet handler that implements LNP addressing.
LNPAddressingHandler(PacketHandler) - Constructor for class josx.rcxcomm.LNPAddressingHandler
 
LNPHandler - class josx.rcxcomm.LNPHandler.
A Packet handler that implements the outer LNP packet format.
LNPHandler() - Constructor for class josx.rcxcomm.LNPHandler
Creates an LNP packet handler and opens the tower
LNPIntegrityHandler - class josx.rcxcomm.LNPIntegrityHandler.
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.SocketProxy
 
main(String[]) - Static method in class josx.rcxcomm.HttpProxy
 
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
 

O

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

P

packetHandler - Variable in class josx.rcxcomm.RCXAbstractPort
 
PacketHandler - class josx.rcxcomm.PacketHandler.
Abstract packet handler.
PacketHandler() - Constructor for class josx.rcxcomm.PacketHandler
 
PacketHandler(PacketHandler) - Constructor for class josx.rcxcomm.PacketHandler
 
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.

R

RCXAbstractPort - class josx.rcxcomm.RCXAbstractPort.
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 josx.rcxcomm.RCXBean.
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 josx.rcxcomm.RCXF7Port.
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() - Constructor for class josx.rcxcomm.RCXF7Port
 
RCXF7Port(String) - Constructor for class josx.rcxcomm.RCXF7Port
 
RCXLNPAddressingPort - class josx.rcxcomm.RCXLNPAddressingPort.
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(byte, byte) - Constructor for class josx.rcxcomm.RCXLNPAddressingPort
 
RCXLNPAddressingPort(String, byte, byte) - Constructor for class josx.rcxcomm.RCXLNPAddressingPort
 
RCXLNPPort - class josx.rcxcomm.RCXLNPPort.
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() - Constructor for class josx.rcxcomm.RCXLNPPort
 
RCXLNPPort(String) - Constructor for class josx.rcxcomm.RCXLNPPort
 
RCXPort - class josx.rcxcomm.RCXPort.
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() - Constructor for class josx.rcxcomm.RCXPort
 
RCXPort(String) - Constructor for class josx.rcxcomm.RCXPort
 
RCXRemote - class josx.rcxcomm.RCXRemote.
Utility class to support remote execution.
RCXRemote() - Constructor for class josx.rcxcomm.RCXRemote
 
read(byte[]) - Method in class josx.rcxcomm.Tower
Low-level read
receive() - Method in class josx.rcxcomm.RCXBean
Receive a byte from the RCX.
receive(byte[]) - Method in class josx.rcxcomm.Tower
Receive a packet
receive(int) - Method in class josx.rcxcomm.RCXBean
Receive n bytes from the RCX.
receiveAck(byte[]) - Method in class josx.rcxcomm.PacketHandler
 
receiveAck(byte[]) - Method in class josx.rcxcomm.LLCHandler
Receive a ack.
receiveInt() - Method in class josx.rcxcomm.RCXBean
Receive a byte from the RCX.
receivePacket(byte[]) - Method in class josx.rcxcomm.PacketHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPIntegrityHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LNPAddressingHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LLCReliableHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.LLCHandler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.F7Handler
Receive a packet.
receivePacket(byte[]) - Method in class josx.rcxcomm.F7DeliveryHandler
Receive a packet, and send an ack.
RemoteVisionConstants - interface josx.rcxcomm.RemoteVisionConstants.
 
reset() - Method in class josx.rcxcomm.RCXAbstractPort
Resets sequence numbers for this port
reset() - Method in class josx.rcxcomm.PacketHandler
Reset sequence numbers for this handler
reset() - Method in class josx.rcxcomm.LLCReliableHandler
Reset sequence numbers.
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[], int) - Method in class josx.rcxcomm.Tower
send a packet to the RCX, e.g 0x10 for ping
sendInt(int) - Method in class josx.rcxcomm.RCXBean
Send an integer to the RCX.
sendPacket(byte[], int) - Method in class josx.rcxcomm.PacketHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LNPIntegrityHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LNPHandler
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.LLCReliableHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.LLCHandler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.F7Handler
Send a packet.
sendPacket(byte[], int) - Method in class josx.rcxcomm.F7DeliveryHandler
Send a packet, checking for returned ack.
setComPort(String) - Method in class josx.rcxcomm.RCXBean
Change or set which comPort should be used for communication with the RCX
setError(int) - Method in class josx.rcxcomm.Tower
Setter for OS Error
setListen(boolean) - Method in class josx.rcxcomm.RCXAbstractPort
Switch listening on and off on the PC, for a serial tower.
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.LNPHandler
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.F7Handler
Set or unset the listen flag to keep a PC serial tower alive
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 josx.rcxcomm.SocketProxy.
A Proxy for the RCX Socket interface.
start() - Static method in class josx.rcxcomm.RCXRemote
 
startListening(byte) - Static method in class josx.rcxcomm.LNP
Start listening for incoming broadcasts and addressing packets.
stop() - Static method in class josx.rcxcomm.RCXRemote
 
strerror(int) - Method in class josx.rcxcomm.Tower
Converts an error number to a string Note you should negate the error number before passing it to this method as this method expects a positive value.

T

Tower - class josx.rcxcomm.Tower.
Low-level interface to the Lego IR Tower Used by RCXPort to send and receive messages to and from the RCX.
Tower() - Constructor for class josx.rcxcomm.Tower
Create the tower class

W

write(byte[], int) - Method in class josx.rcxcomm.Tower
Write low-level bytes to the tower, e.g 0xff550010ef10ef for ping

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