|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable org.fosstrak.ale.server.readers.LogicalReader org.fosstrak.ale.server.readers.BaseReader org.fosstrak.ale.server.readers.llrp.LLRPAdaptor
public class LLRPAdaptor
this class implements the adaptor from a logical reader in the filtering and
collection to the physical llrp readers.
the management of the readers is performed by the llrp-client-adaptor. This
adaptor maintains a list of all the readers currently configured on this
filtering and collection server and maintains the corresponding connections.
this adaptor will use the LLRPManager from the filtering and collection to
get a reference to these llrp readers. the adaptor just registers itself for
read notifications. whenever such a notification occurs the epc codes (if
contained) are extracted from the notification and are then propagated to
the filtering and collection framework.
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 | |
---|---|
LLRPAdaptor()
constructor for the LLRP adaptor. |
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 |
cleanup()
this method is called whenever a reader is undefined. a basereader can override this method with its own cleanup routine. |
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 LLRPAdaptor. this method must be called before the Adaptor can be used. |
void |
notify(byte[] binaryMessage,
java.lang.String readerName)
|
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 |
---|
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 |
---|
public LLRPAdaptor()
Method Detail |
---|
public void initialize(java.lang.String name, org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
initialize
in class BaseReader
name
- the name for the reader encapsulated by this adaptor.spec
- the specification that describes the current reader.
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- whenever an internal error occurs.
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public void addTag(Tag tag)
BaseReader
addTag
in class BaseReader
tag
- tag to be added to the readerpublic void addTags(java.util.List<Tag> tags)
BaseReader
addTags
in class BaseReader
tags
- a list of tags to be added to the readerpublic void connectReader() throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
BaseReader
connectReader
in class BaseReader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public void disconnectReader() throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
BaseReader
disconnectReader
in class BaseReader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public void start()
BaseReader
start
in class BaseReader
public void stop()
BaseReader
stop
in class BaseReader
public void cleanup()
BaseReader
cleanup
in class BaseReader
public void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
BaseReader
update
in class BaseReader
spec
- LRSpec for the reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public org.fosstrak.hal.Observation[] identify(java.lang.String[] readPointNames) throws org.fosstrak.hal.HardwareException
BaseReader
identify
in class BaseReader
readPointNames
- the readers/sources that have to be polled
org.fosstrak.hal.HardwareException
- whenever an internal hardware error occurs (as reader not available...)public void notify(byte[] binaryMessage, java.lang.String readerName) throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |