|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.ale.server.readers.IdentifyThread
public class IdentifyThread
An IdentifyThread encapsulates all the methods necessary for polling the
device. The identification process itself is based on the method
identify()
of the associated AutoIdController
.
Constructor Summary | |
---|---|
IdentifyThread()
Constructs an instance of IdentifyThread. |
|
IdentifyThread(BaseReader adapter)
Constructs an instance of IdentifyThread. |
Method Summary | |
---|---|
BaseReader |
getAdapter()
Gets the Controller instance associated with this IdentificationThread. |
long |
getPollingFrequency()
Gets the current polling frequency. |
boolean |
isRunning()
Returns true if the thread is currently running, false otherwise. |
void |
resumeIdentify()
Resumes the IdentifyThread. |
void |
run()
Polls the RFID hardware for RFID tags in the fields. |
void |
setPollingFrequency(long frequency)
Sets the polling frequency. |
void |
setSourceIds(java.lang.String[] sourceIds)
set the sources to poll. |
void |
start()
Starts an instance of IdentifyThread. |
void |
stopIdentify()
Stops the Thread. |
void |
suspendIdentify()
Suspends the IdentifyThread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentifyThread()
public IdentifyThread(BaseReader adapter)
adapter
- the associated controllerMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void start()
public void suspendIdentify()
public void resumeIdentify()
public void stopIdentify()
public long getPollingFrequency()
public void setPollingFrequency(long frequency)
frequency
- the polling frequency in milliseconds.public void setSourceIds(java.lang.String[] sourceIds)
sourceIds
- an array of source ids to be polled on the reader.public boolean isRunning()
public BaseReader getAdapter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |