org.fosstrak.ale.server.readers.rp
Class InputGenerator

java.lang.Object
  extended by org.fosstrak.ale.server.readers.rp.InputGenerator
All Implemented Interfaces:
java.util.EventListener, org.fosstrak.reader.rp.proxy.NotificationChannelListener

public class InputGenerator
extends java.lang.Object
implements org.fosstrak.reader.rp.proxy.NotificationChannelListener

This class is the connector between the reader protocol and the ALE. It creates the necessary objects on the reader device to get all required data.

Author:
sawielan, regli

Constructor Summary
InputGenerator(RPAdaptor adaptor)
          Constructor sets parameter and starts initializer.
 
Method Summary
 void dataReceived(org.fosstrak.reader.rprm.core.msg.notification.Notification notification)
          This method is invoked if a notification is arrived at the notification channel end-point.
 boolean isFailed()
          This method indicates if the initialization of the input generator is failed or not.
 boolean isReady()
          This method indicates if the input generator is ready or not.
 void poll()
          polls the rp-proxy for all tags available.
 void remove()
          This method removes all objects on the reader device which are created by this input generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputGenerator

public InputGenerator(RPAdaptor adaptor)
               throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Constructor sets parameter and starts initializer.

Parameters:
adaptor - the adaptor holding this inputGenerator
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Method Detail

dataReceived

public void dataReceived(org.fosstrak.reader.rprm.core.msg.notification.Notification notification)
This method is invoked if a notification is arrived at the notification channel end-point.

Specified by:
dataReceived in interface org.fosstrak.reader.rp.proxy.NotificationChannelListener
Parameters:
notification - from the reader device

isReady

public boolean isReady()
This method indicates if the input generator is ready or not.

Returns:
true if the input generator is ready and false otherwise

isFailed

public boolean isFailed()
This method indicates if the initialization of the input generator is failed or not.

Returns:
true if the initialization is failed and false otherwise

remove

public void remove()
This method removes all objects on the reader device which are created by this input generator.


poll

public void poll()
          throws org.fosstrak.reader.rp.proxy.RPProxyException
polls the rp-proxy for all tags available.

Throws:
org.fosstrak.reader.rp.proxy.RPProxyException - when the polling failed


Copyright © 2009. All Rights Reserved.