pops.ale.engine.input
Class RPChannel

java.lang.Object
  extended by pops.ale.engine.input.RPChannel
Direct Known Subclasses:
PsionCaenChannel, RPSimChannel

public abstract class RPChannel
extends java.lang.Object

Rp connector class.

Author:
rdagher

Field Summary
protected  boolean isDefaultTriggerLauncherInstalled
           
 
Constructor Summary
RPChannel()
          Constructor
 
Method Summary
abstract  void clean()
          Cleanup at end.
abstract  ECInitiationCondition getInitCondition()
          Determines the condition that started the reading process.
abstract  ECTrigger getInitTrigger()
          Determines what trigger started the reading process.
abstract  ECTerminationCondition getTermCondition()
          Determines the condition that stopped the reading process.
abstract  ECTrigger getTermTrigger()
          Determines what trigger stopped the reading process.
abstract  boolean hasTags()
          Indicates if channel has more tags to read.
abstract  void init(java.lang.String reader_name, ECSpec spec)
          Set up the communication channel.
abstract  boolean isDone()
          Indicates if channel has done receiving all tags due to a termination condition.
protected  void killDefaultTriggerLauncher()
           
abstract  Tag nextTag()
          Blocking read access to get tag data array containing the EPC code.
abstract  void start()
          Activates channel and starts acquisition process.
protected  void startDefaultTriggerLauncher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDefaultTriggerLauncherInstalled

protected boolean isDefaultTriggerLauncherInstalled
Constructor Detail

RPChannel

public RPChannel()
Constructor

Method Detail

startDefaultTriggerLauncher

protected void startDefaultTriggerLauncher()

killDefaultTriggerLauncher

protected void killDefaultTriggerLauncher()

init

public abstract void init(java.lang.String reader_name,
                          ECSpec spec)
Set up the communication channel.

Parameters:
reader_name - the name of the reader to connect.
spec - the ECSpec object containing the following information :
filtering, data selection, and triggers. If null, the channel shall perform the initial setup of the reader (low level.).

start

public abstract void start()
Activates channel and starts acquisition process.


clean

public abstract void clean()
Cleanup at end.


isDone

public abstract boolean isDone()
Indicates if channel has done receiving all tags due to a termination condition.


hasTags

public abstract boolean hasTags()
Indicates if channel has more tags to read.


nextTag

public abstract Tag nextTag()
Blocking read access to get tag data array containing the EPC code.

Returns:
the tag array of bytes of the TAG

getInitCondition

public abstract ECInitiationCondition getInitCondition()
Determines the condition that started the reading process.

Returns:

getInitTrigger

public abstract ECTrigger getInitTrigger()
Determines what trigger started the reading process.

Returns:

getTermCondition

public abstract ECTerminationCondition getTermCondition()
Determines the condition that stopped the reading process.

Returns:

getTermTrigger

public abstract ECTrigger getTermTrigger()
Determines what trigger stopped the reading process.

Returns: