|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjosx.rcxcomm.remotecontrol.RemoteControlSensor
This class is a sensor for remote control messages.
It listens for remote control messages and triggers the registered listener
methods.
F7 LEGO firmware opcodes are supported also which means that the sender could use RCXF7Port
instead of the LEGO remote control
The sensor uses the built-in lejos SerialListener thread
Field Summary |
Constructor Summary | |
RemoteControlSensor()
creates a new instance of RemoteControlSensor |
Method Summary | |
void |
addRemoteControlListener(RemoteControlListener aListener)
adds a remote control listener |
void |
packetAvailable(byte[] aPacket,
int aLength)
implements the SerialListener interface listens for incoming packets on the IR port and notifies the registered listeners. |
void |
removeRemoteControlListener(RemoteControlListener aListener)
removes a remote control listener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
public RemoteControlSensor()
Method Detail |
public void addRemoteControlListener(RemoteControlListener aListener)
aListener
- a remote control listenerRemoteControlListener
public void removeRemoteControlListener(RemoteControlListener aListener)
aListener
- a remote control listenerRemoteControlListener
public void packetAvailable(byte[] aPacket, int aLength)
packetAvailable
in interface SerialListener
aPacket
- The packet data received.aLength
- The length of the packet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |