|
||||||||||
| 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
public abstract class LogicalReader
Represents the abstract interface for a reader. a reader can be either a composite of different readers or a basereader
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
logicalReaderProperties
property value pair for the reader configuration. |
protected org.fosstrak.ale.xsd.ale.epcglobal.LRSpec |
logicalReaderSpec
LRSpec for the reader. |
protected java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> |
properties
LRpoperties for the reader. |
protected java.lang.String |
readerName
name of the reader. |
protected boolean |
started
indicates whether the reader is started or not. |
| Constructor Summary | |
|---|---|
LogicalReader()
constructor for the logical reader. |
|
| Method Summary | |
|---|---|
static LogicalReader |
createReader(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
factory method to create a new reader. this can be a CompositeReader or a BaseReader. |
org.fosstrak.ale.xsd.ale.epcglobal.LRSpec |
getLRSpec()
This method returns the spec. |
java.lang.String |
getName()
This method returns the name of the logical reader. |
java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> |
getProperties()
This method returns the properties. |
void |
initialize(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
initializes a Logical Reader. this method must be called befor the Reader can be used. |
protected boolean |
isStarted()
tells whether the reader is started or not. |
void |
setLRSpec(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
This method sets the LRSpec. |
void |
setName(java.lang.String name)
This method sets the name of the logical reader. |
void |
setProperties(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRProperty property)
This method sets the LRProperty property to the logical reader named name. |
protected void |
setStarted()
flags the reader as started. |
protected void |
setStopped()
flags the reader as stopped. |
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 the specification of a logical reader. |
| 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 java.lang.String readerName
protected java.util.Map<java.lang.String,java.lang.String> logicalReaderProperties
protected org.fosstrak.ale.xsd.ale.epcglobal.LRSpec logicalReaderSpec
protected java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> properties
protected boolean started
| Constructor Detail |
|---|
public LogicalReader()
| 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
name - 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 void setLRSpec(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
spec - The spec.public org.fosstrak.ale.xsd.ale.epcglobal.LRSpec getLRSpec()
public void setProperties(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRProperty property)
name - name of the propertyproperty - The property.public java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> getProperties()
protected void setStarted()
protected void setStopped()
protected boolean isStarted()
public static LogicalReader createReader(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
name - name of the readerspec - the specificationFile for a Reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - when the LogicalReader could not be built by reflection
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponsepublic java.lang.String getName()
public void setName(java.lang.String name)
name - name of this logical reader
public abstract void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
spec - an LRSpec containing the changes of the reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponsepublic abstract void stop()
public abstract void start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||