public class Mask
extends java.lang.Object
RFIDReader
Constructor and Description |
---|
Mask(Bank bank,
int bitPointer,
int bitLength,
java.lang.String data)
Create a mask.
|
Modifier and Type | Method and Description |
---|---|
Bank |
getBank()
Get the mask memory bank.
|
int |
getBitLength()
Get the bit length of the mask data.
|
int |
getBitPointer()
Get the bit pointer of the mask.
|
java.lang.String |
getData()
Get the data used for masking (example: "AABB1122").
|
static Mask |
maskEPC(java.lang.String data)
Create a mask for tags that have an EPC starting with a given hex string data.
|
static Mask |
maskTID(java.lang.String data)
Create a mask for tags that have TID memory bank data starting with a given hex string data.
|
static Mask |
maskUser(java.lang.String data)
Create a mask for tags that have User memory bank data starting with a given hex string data.
|
void |
setBank(Bank bank)
Set the mask memory.
|
void |
setBitLength(int bitLength)
Set the bit length of the mask data.
|
void |
setBitPointer(int bitPointer)
Set the bit pointer for the mask.
|
void |
setData(java.lang.String data)
Set the data used for masking, as a hex string (example: "AABB1122") .
|
public static final Mask NONE
public Mask(Bank bank, int bitPointer, int bitLength, java.lang.String data) throws InvalidParamException
bank
- memory bank to mask onbitPointer
- bit pointer within the memory bankbitLength
- mask length (bits)data
- mask data (hex string)InvalidParamException
public static Mask maskEPC(java.lang.String data) throws InvalidParamException
data
- the starting EPC data, as a hex string (example: "AABB1122")InvalidParamException
public static Mask maskTID(java.lang.String data) throws InvalidParamException
data
- the starting TID memory bank data, as a hex string (example: "AABB1122")InvalidParamException
public static Mask maskUser(java.lang.String data) throws InvalidParamException
data
- the starting User memory bank data, as a hex string (example: "AABB1122")InvalidParamException
public Bank getBank()
public void setBank(Bank bank)
bank
- memory bank used for maskingpublic int getBitPointer()
public void setBitPointer(int bitPointer) throws InvalidParamException
bitPointer
- bit pointer to where the mask starts within the memory bankInvalidParamException
public int getBitLength()
public void setBitLength(int bitLength) throws InvalidParamException
bitLength
- bit length of the mask dataInvalidParamException
public java.lang.String getData()
public void setData(java.lang.String data)
data
- the data used for masking