|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiris.IRReceiver
public class IRReceiver
Handles the high-level dialogue with an IRIS receiver.
Upon instantiation, this class tries to attach to an IRIS receiver, and
thereupon starts handling communication with it. It maintains an internal
list of detected IR badges.
To be notified of incoming or outgoing badges, one must create a
MovementListener
implementation, and register it with the method
addMovementListener
. The movement listener will then be notified
of every badge coming in or going out.
Constructor Summary | |
---|---|
IRReceiver(ComWrapper cw)
Constructs a new IR receiver. |
Method Summary | |
---|---|
void |
addMovementListener(MovementListener l)
Adds a movement listener to the receiver's list of listeners. |
java.lang.String |
getVersionId()
Returns the physical receiver's firmware version string. |
void |
removeMovementListener(MovementListener l)
Removes a movement listener from the receiver's list of listeners. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IRReceiver(ComWrapper cw)
cw
- the ComWrapper corresponding to the receiverMethod Detail |
---|
public void addMovementListener(MovementListener l)
l
- a movement listenerpublic void removeMovementListener(MovementListener l)
l
- the movement listener to be removedpublic java.lang.String getVersionId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |