Package com.zebra.rfid.api3
Class TagPatternBase
- java.lang.Object
-
- com.zebra.rfid.api3.TagPatternBase
-
public class TagPatternBase extends java.lang.ObjectTag Pattern Information for Filtering. If bit i in the mask (TagMask) is zero, then bit i of the target tag (MemoryBankData) is a don’t care (X); if bit i in the mask is one, then bit i of the target tag is bit i of the tag pattern. For example, all tags is specified using a mask length of zero.
-
-
Constructor Summary
Constructors Constructor Description TagPatternBase()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitOffset()The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.MEMORY_BANKgetMemoryBank()Memory Bank to be considered for filtering.java.lang.StringgetStringTagMask()The pattern against which to compare for tag-filtering.java.lang.StringgetStringTagPattern()The pattern against which to compare for tag-filtering.byte[]getTagMask()Bit Pattern to be matched.intgetTagMaskBitCount()Number of bits in TagMask to be taken for comparison.byte[]getTagPattern()Memory Bank Data which is to be used for comparison.intgetTagPatternBitCount()Number of bits in TagData to be taken for comparison.voidsetBitOffset(int bitOffset)The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.voidsetMemoryBank(MEMORY_BANK memoryBank)Memory Bank to be considered for filtering.voidsetTagMask(byte[] tagMask)Bit Pattern to be matched.voidsetTagMask(java.lang.String tagMask)function to set the tag pattern when it is passed as StringvoidsetTagMaskBitCount(int tagMaskBitCount)Number of bits in TagMask to be taken for comparison.voidsetTagPattern(byte[] tagPattern)Memory Bank Data which is to be used for comparison.voidsetTagPattern(java.lang.String tagPattern)Memory Bank Data which is to be used for comparison.voidsetTagPatternBitCount(int tagPatternBitCount)Number of bits in TagData to be taken for comparison.
-
-
-
Method Detail
-
getMemoryBank
public MEMORY_BANK getMemoryBank()
Memory Bank to be considered for filtering.
-
setMemoryBank
public void setMemoryBank(MEMORY_BANK memoryBank)
Memory Bank to be considered for filtering.
-
getTagPattern
public byte[] getTagPattern()
Memory Bank Data which is to be used for comparison. The application should allocate a short array and assign to this field. The Memory Bank Data to be used for comparison should be filled in the array.
-
setTagPattern
public void setTagPattern(byte[] tagPattern)
Memory Bank Data which is to be used for comparison. The application should allocate a short array and assign to this field. The Memory Bank Data to be used for comparison should be filled in the array.
-
setTagPattern
public void setTagPattern(java.lang.String tagPattern)
Memory Bank Data which is to be used for comparison. String format- Parameters:
tagPattern-
-
getStringTagPattern
public java.lang.String getStringTagPattern()
The pattern against which to compare for tag-filtering. This returns the tag pattern in string format
-
getTagPatternBitCount
public int getTagPatternBitCount()
Number of bits in TagData to be taken for comparison.
-
setTagPatternBitCount
public void setTagPatternBitCount(int tagPatternBitCount)
Number of bits in TagData to be taken for comparison.
-
getTagMask
public byte[] getTagMask()
Bit Pattern to be matched. The application should allocate a short array and assign it to this field. The Tag Mask to be used for bit-wise comparison should be filled in the array.
-
setTagMask
public void setTagMask(byte[] tagMask)
Bit Pattern to be matched. The application should allocate a short array and assign it to this field. The Tag Mask to be used for bit-wise comparison should be filled in the array.
-
setTagMask
public void setTagMask(java.lang.String tagMask)
function to set the tag pattern when it is passed as String- Parameters:
tagMask-
-
getStringTagMask
public java.lang.String getStringTagMask()
The pattern against which to compare for tag-filtering. This returns the tag mask in string format
-
getTagMaskBitCount
public int getTagMaskBitCount()
Number of bits in TagMask to be taken for comparison.
-
setTagMaskBitCount
public void setTagMaskBitCount(int tagMaskBitCount)
Number of bits in TagMask to be taken for comparison.
-
getBitOffset
public int getBitOffset()
The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.
-
setBitOffset
public void setBitOffset(int bitOffset)
The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.
-
-