public abstract class AbstractGPIOService<T extends AbstractSensorSession>
extends java.lang.Object
Constructor and Description |
---|
AbstractGPIOService() |
Modifier and Type | Method and Description |
---|---|
void |
flashGPO(java.lang.String readerID,
int flashTime,
java.lang.Integer... ports)
This method flashes External Output to high for a specified number of
seconds.
|
abstract void |
flashGPO(java.lang.String readerID,
int flashTime,
java.util.Set<java.lang.Integer> ports)
This method flashes External Output to high for a specified number of
seconds.
|
boolean |
isReaderAvailable(java.lang.String readerID)
Returns true if a reader with the given ID is available to this service.
|
abstract void |
setGPO(java.lang.String readerID,
java.util.Collection<java.lang.Integer> ports)
This method sets the output ports on a reader
|
void |
setGPO(java.lang.String readerID,
java.lang.Integer... ports)
This method sets the output ports on a reader
|
void |
setReaderDAO(ReaderDAO readerDAO) |
abstract boolean |
testGPI(java.lang.String readerID,
int port)
Tests the current state of the port
|
public abstract void setGPO(java.lang.String readerID, java.util.Collection<java.lang.Integer> ports) throws CannotExecuteException
readerID
- The readerID of the readerports
- The ports to set high. All other ports will be set low. Port 0
is the lowest port.CannotExecuteException
- If the ports cannot be set for some reason.public void setGPO(java.lang.String readerID, java.lang.Integer... ports) throws CannotExecuteException
readerID
- The readerID of the readerports
- The ports to set high. All other ports will be set low. Port 0
is the lowest port.CannotExecuteException
- If the ports cannot be set for some reason.public abstract void flashGPO(java.lang.String readerID, int flashTime, java.util.Set<java.lang.Integer> ports) throws CannotExecuteException
readerID
- The readerID of the readerflashTime
- The time in seconds to hold the ports highports
- The ports to flash. Port 0 is the lowest portCannotExecuteException
- If the ports cannot be flashed for some reasonpublic void flashGPO(java.lang.String readerID, int flashTime, java.lang.Integer... ports) throws CannotExecuteException
readerID
- The readerID of the readerflashTime
- The time in seconds to hold the ports highports
- The ports to flash. Port 0 is the lowest port.CannotExecuteException
- If the ports cannot be flashed for some reasonpublic abstract boolean testGPI(java.lang.String readerID, int port) throws CannotExecuteException
readerID
- The readerID of the readerport
- The port to test. Port 0 represents the lowest portCannotExecuteException
public void setReaderDAO(ReaderDAO readerDAO)
readerDAO
- the readerDAO to setpublic boolean isReaderAvailable(java.lang.String readerID)
readerID
-