com.caen.RFIDLibrary
Class CAENRFIDReceiver

java.lang.Object
  extended by com.caen.RFIDLibrary.CAENRFIDReceiver

public final class CAENRFIDReceiver
extends java.lang.Object

This class defines the CAEN RFID Receiver.


Field Summary
protected  javax.swing.event.EventListenerList listenerList
           
 
Constructor Summary
CAENRFIDReceiver(int port)
          Creates a new instance of CAENRFIDReceiver.
 
Method Summary
 void addCAENRFIDEventListener(CAENRFIDEventListener listener)
          Adds the specified CAENRFID Event listener to receive event events from this CAENRIFDReceiver.
 void KillServer()
          Stop the Receiver and kill the associated thread
 void removeCAENRFIDEventListener(CAENRFIDEventListener listener)
          Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRFIDReceiver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerList

protected javax.swing.event.EventListenerList listenerList
Constructor Detail

CAENRFIDReceiver

public CAENRFIDReceiver(int port)
Creates a new instance of CAENRFIDReceiver. The CAENRFIDReceiver create a thread that wait a tcp/ip communication from the Reader on a specified port

Parameters:
port - The tcp where the thread wait a Reader notifiaction
Method Detail

KillServer

public void KillServer()
Stop the Receiver and kill the associated thread


addCAENRFIDEventListener

public void addCAENRFIDEventListener(CAENRFIDEventListener listener)
Adds the specified CAENRFID Event listener to receive event events from this CAENRIFDReceiver.

Parameters:
listener - the action listener

removeCAENRFIDEventListener

public void removeCAENRFIDEventListener(CAENRFIDEventListener listener)
Removes the specified CAENRFIDEvent listener so that it no longer receives CAENRFID events from this CAENRFIDReceiver.

Parameters:
listener - the action listener