rfid
Class RFIDReader

java.lang.Object
  extended byrfid.RFIDReader
All Implemented Interfaces:
java.lang.Runnable

public class RFIDReader
extends java.lang.Object
implements java.lang.Runnable

Interface for an RFID tag reader.


Constructor Summary
RFIDReader(java.lang.String port)
          Constructs an RFID reader with the name of a serial port (e.g.
 
Method Summary
 void addRFIDListener(RFIDListener listener)
          Add a listener to be notified of RFID events.
 void hello()
          Sends a reset to the reader and checks the returned packet to make sure that the reader is hooked up correctly.
 RFIDTag[] inventory()
          Takes an inventory of all tags within range of the reader.
 void reset()
          Resets the reader to its ready state.
 void run()
           
 void stopScanner()
          Tells the reader to stop polling the reader in a separate thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFIDReader

public RFIDReader(java.lang.String port)
           throws RFIDException
Constructs an RFID reader with the name of a serial port (e.g. "COM1"), and opens connection to the reader.

Method Detail

addRFIDListener

public void addRFIDListener(RFIDListener listener)
Add a listener to be notified of RFID events.


stopScanner

public void stopScanner()
Tells the reader to stop polling the reader in a separate thread.


inventory

public RFIDTag[] inventory()
                    throws RFIDException
Takes an inventory of all tags within range of the reader. Returned tags will have their RFID and DSFID numbers set.

Throws:
RFIDException

hello

public void hello()
           throws RFIDException
Sends a reset to the reader and checks the returned packet to make sure that the reader is hooked up correctly.

Throws:
RFIDException

reset

public void reset()
           throws RFIDException
Resets the reader to its ready state.

Throws:
RFIDException

run

public void run()
Specified by:
run in interface java.lang.Runnable