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.

Version:
CAENRFIDLibrary 4.2.0
Author:
Alberto Lucchesi (a.lucchesi@caen.it) CAEN SpA Computing Division @2005-2007, Andrea Iavazzo (a.iavazzo@caen.it) CAEN RFID Srl Computing Division @2009-2010

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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