public abstract class BaseModuleUHF
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected IModuleRfidUhfEventListener |
_moduleRfidUhfEventListener |
protected IReader |
_reader |
protected int |
_timeout |
protected static int |
DEFAULT_TIMEOUT |
protected java.lang.String |
TAG |
| Constructor and Description |
|---|
BaseModuleUHF(IReader reader,
ModuleUHFType type,
IProtocol protocol,
IModuleRfidUhfEventListener listener)
Create an instance of the BaseModuleUHF class.
|
| Modifier and Type | Method and Description |
|---|---|
IProtocol |
getProtocol()
Use only within the SDK.
|
int |
getTimeout()
Returns the timeout value of the communication with RFID UHF module.
|
ModuleUHFType |
getType()
Returns the RFID UHF module type of the connected Device.
|
abstract void |
PumpEvent(int subCmd,
java.lang.Object data) |
void |
setTimeout(int timeout)
Set the timeout value of the communication with RFID UHF module.
|
protected static final int DEFAULT_TIMEOUT
protected java.lang.String TAG
protected IModuleRfidUhfEventListener _moduleRfidUhfEventListener
protected IReader _reader
protected int _timeout
public BaseModuleUHF(IReader reader, ModuleUHFType type, IProtocol protocol, IModuleRfidUhfEventListener listener)
reader - The reader class which the module installed.type - A ModuleUHFType enumeration that specifies the type of RFID UHF module.protocol - The connection protocol.listener - The listener for module event.public ModuleUHFType getType()
public IProtocol getProtocol()
public int getTimeout()
public void setTimeout(int timeout)
timeout - An integer that specifies the timeout of the communication with RFID UHF module.
Timeout is in milliseconds (ms).public abstract void PumpEvent(int subCmd,
java.lang.Object data)