|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.fosstrak.ale.server.readers.LogicalReader
org.fosstrak.ale.server.readers.BaseReader
public abstract class BaseReader
represents an abstract superclass for basereaders.
| Field Summary | |
|---|---|
protected boolean |
connected
indicates whether the reader is connected or not. |
| Fields inherited from class org.fosstrak.ale.server.readers.LogicalReader |
|---|
logicalReaderProperties, logicalReaderSpec, properties, readerName, started |
| Constructor Summary | |
|---|---|
BaseReader()
constructor for a BaseReader. |
|
| Method Summary | |
|---|---|
abstract void |
addTag(Tag tag)
add a tag to a reader. |
abstract 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. |
abstract void |
connectReader()
sets up a reader. |
abstract void |
disconnectReader()
destroys a reader. |
abstract 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. |
protected boolean |
isConnected()
tells whether the reader is connected or not. |
protected void |
setConnected()
flags the reader as connected. |
protected void |
setDisconnected()
flags the reader as disconnected. |
abstract void |
start()
starts a basereader to read tags. |
abstract void |
stop()
stops a reader from reading tags. |
abstract 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.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 |
| Field Detail |
|---|
protected boolean connected
| Constructor Detail |
|---|
public BaseReader()
| 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 LogicalReadername - the name for the reader encapsulated by this reader.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.ImplementationExceptionResponsepublic abstract void addTag(Tag tag)
tag - tag to be added to the readerpublic abstract void addTags(java.util.List<Tag> tags)
tags - a list of tags to be added to the readerpublic abstract void start()
start in class LogicalReaderpublic abstract void stop()
stop in class LogicalReader
public abstract void connectReader()
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occured
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public abstract void disconnectReader()
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occured
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public abstract void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
update in class LogicalReaderspec - LRSpec for the reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public abstract org.fosstrak.hal.Observation[] identify(java.lang.String[] readPointNames)
throws org.fosstrak.hal.HardwareException
readPointNames - the readers/sources that have to be polled
org.fosstrak.hal.HardwareException - whenever an internal hardware error occurs (as reader not available...)protected void setConnected()
protected void setDisconnected()
protected boolean isConnected()
public void cleanup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||