|
||||||||||
| 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
org.fosstrak.ale.server.readers.hal.HALAdaptor
public class HALAdaptor
adaptor for all HAL devices. this adaptor allows to attach HAL devices directly to the ale
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_IMPLCLASS
the name of the default implementing class to be chosen. |
| 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 | |
|---|---|
HALAdaptor()
constructor for the HAL adaptor. |
|
| Method Summary | |
|---|---|
void |
addTag(Tag tag)
whenever a new Tag is read a notification is sent to the observers. |
void |
addTags(java.util.List<Tag> tags)
whenever new Tags are read a notification is sent to the observers. |
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. this method is used when the IdentifyThread is used to poll the adaptor. |
void |
initialize(java.lang.String name,
org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
initializes a HALAdaptor. this method must be called befor the Adaptor can be used. |
void |
start()
starts a base reader 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 |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_IMPLCLASS
| Constructor Detail |
|---|
public HALAdaptor()
| 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 BaseReadername - 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 connectReader()
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
connectReader in class BaseReaderorg.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occured
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public void disconnectReader()
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
disconnectReader in class BaseReaderorg.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occured
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponsepublic void start()
start in class BaseReaderpublic void stop()
stop in class BaseReader
public void update(org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
update in class BaseReaderspec - LRSpec for the reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponsepublic void addTag(Tag tag)
addTag in class BaseReadertag - a tag read on the readerpublic void addTags(java.util.List<Tag> tags)
addTags in class BaseReadertags - a list of tags to be added to the reader
public org.fosstrak.hal.Observation[] identify(java.lang.String[] readPointNames)
throws org.fosstrak.hal.HardwareException
identify in class BaseReaderreadPointNames - the readers/sources that have to be polled
org.fosstrak.hal.HardwareException - whenever an internal hardware error occurs (as reader not available...)public void cleanup()
BaseReader
cleanup in class BaseReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||