org.fosstrak.ale.server.readers.test
Class TestAdaptor

java.lang.Object
  extended by java.util.Observable
      extended by org.fosstrak.ale.server.readers.LogicalReader
          extended by org.fosstrak.ale.server.readers.BaseReader
              extended by org.fosstrak.ale.server.readers.test.TestAdaptor

public class TestAdaptor
extends BaseReader

test adaptor for the filtering and collection triggering tag in regular time intervals.

Author:
sawielan

Field Summary
 
Fields inherited from class org.fosstrak.ale.server.readers.BaseReader
connected
 
Fields inherited from class org.fosstrak.ale.server.readers.LogicalReader
logicalReaderProperties, logicalReaderSpec, properties, readerName, started
 
Constructor Summary
TestAdaptor()
           
 
Method Summary
 void addTag(Tag tag)
          add a tag to a reader.
 void addTags(java.util.List<Tag> tags)
          add a List of tags to a reader.
 void connectReader()
          sets up a reader.
 void disconnectReader()
          destroys a reader.
 org.fosstrak.hal.Observation[] identify(java.lang.String[] readPointNames)
          Triggers the identification of all tags that are currently available on the reader.
 void initialize(java.lang.String name, org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
          initializes a BaseReader. this method must be called befor the Reader can be used.
 void start()
          starts a basereader to read tags.
 void stop()
          stops a reader from reading tags.
 void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
          updates a reader according the specified LRSpec.
 
Methods inherited from class org.fosstrak.ale.server.readers.BaseReader
cleanup, isConnected, setConnected, setDisconnected
 
Methods inherited from class org.fosstrak.ale.server.readers.LogicalReader
createReader, getLRSpec, getName, getProperties, isStarted, setLRSpec, setName, setProperties, setStarted, setStopped
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAdaptor

public TestAdaptor()
Method Detail

initialize

public void initialize(java.lang.String name,
                       org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
                throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Description copied from class: BaseReader
initializes a BaseReader. this method must be called befor the Reader can be used.

Overrides:
initialize in class BaseReader
Parameters:
name - the name for the reader encapsulated by this reader.
spec - the specification that describes the current reader.
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

addTag

public void addTag(Tag tag)
Description copied from class: BaseReader
add a tag to a reader.

Specified by:
addTag in class BaseReader
Parameters:
tag - tag to be added to the reader

addTags

public void addTags(java.util.List<Tag> tags)
Description copied from class: BaseReader
add a List of tags to a reader.

Specified by:
addTags in class BaseReader
Parameters:
tags - a list of tags to be added to the reader

connectReader

public void connectReader()
Description copied from class: BaseReader
sets up a reader.

Specified by:
connectReader in class BaseReader

disconnectReader

public void disconnectReader()
Description copied from class: BaseReader
destroys a reader.

Specified by:
disconnectReader in class BaseReader

start

public void start()
Description copied from class: BaseReader
starts a basereader to read tags.

Specified by:
start in class BaseReader

stop

public void stop()
Description copied from class: BaseReader
stops a reader from reading tags.

Specified by:
stop in class BaseReader

update

public void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
Description copied from class: BaseReader
updates a reader according the specified LRSpec.

Specified by:
update in class BaseReader
Parameters:
spec - LRSpec for the reader

identify

public org.fosstrak.hal.Observation[] identify(java.lang.String[] readPointNames)
                                        throws org.fosstrak.hal.HardwareException
Description copied from class: BaseReader
Triggers the identification of all tags that are currently available on the reader.

Specified by:
identify in class BaseReader
Parameters:
readPointNames - the readers/sources that have to be polled
Returns:
a set of Observations
Throws:
org.fosstrak.hal.HardwareException - whenever an internal hardware error occurs (as reader not available...)


Copyright © 2009. All Rights Reserved.