com.thingmagic
Class Gen2.Select

java.lang.Object
  extended by com.thingmagic.Gen2.Select
All Implemented Interfaces:
TagFilter
Enclosing class:
Gen2

public static class Gen2.Select
extends java.lang.Object
implements TagFilter

Representation of a Gen2 Select operation


Nested Class Summary
static class Gen2.Select.Action
          Gen2 Select Action indicates which Select action to take (See Gen2 spec /Select commands / Tag response to Action parameter) |-----------------------------------------------------------------------------| | Action | Tag Matching | Tag Not-Matching | |----------|--------------------------------|---------------------------------| | 0x00 | Assert SL or Inventoried->A | Deassert SL or Inventoried->B | | 0x01 | Assert SL or Inventoried->A | Do nothing | | 0x02 | Do nothing | Deassert SL or Inventoried->B | | 0x03 | Negate SL or (A->B,B->A) | Do nothing | | 0x04 | Deassert SL or Inventoried->B | Assert SL or Inventoried->A | | 0x05 | Deassert SL or Inventoried->B | Do nothing | | 0x06 | Do nothing | Assert SL or Inventoried->A | | 0x07 | Do nothing | Negate SL or (A->B,B->A) | ------------------------------------------------------------------------------- To improve readability and ease typing, these names abbreviate the official terminology of the Gen2 spec.
static class Gen2.Select.Target
          Gen2 Select Target indicates flag to Act on
 
Field Summary
 Gen2.Select.Action action
          The action value indicates which Select action to take.
 Gen2.Bank bank
          The memory bank in which to compare the mask
 int bitLength
          The length (in bits) of the mask
 int bitPointer
          The location (in bits) at which to begin comparing the mask
 boolean invert
          Whether to invert the selection (deselect tags that meet the comparison and vice versa).
 byte[] mask
          The mask value to compare with the specified region of tag memory, MSB first
 Gen2.Select.Target target
          The target value indicates flag to act on.
 
Constructor Summary
Gen2.Select(boolean invert, Gen2.Bank bank, int bitPointer, int bitLength, byte[] mask)
           
 
Method Summary
 boolean matches(TagData t)
          Test if a tag matches this filter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

invert

public boolean invert
Whether to invert the selection (deselect tags that meet the comparison and vice versa).


bank

public Gen2.Bank bank
The memory bank in which to compare the mask


bitPointer

public int bitPointer
The location (in bits) at which to begin comparing the mask


bitLength

public int bitLength
The length (in bits) of the mask


mask

public byte[] mask
The mask value to compare with the specified region of tag memory, MSB first


target

public Gen2.Select.Target target
The target value indicates flag to act on. Initialized with default value of Target.Select


action

public Gen2.Select.Action action
The action value indicates which Select action to take. Initialized with default value of Action.ON_N_OFF

Constructor Detail

Gen2.Select

public Gen2.Select(boolean invert,
                   Gen2.Bank bank,
                   int bitPointer,
                   int bitLength,
                   byte[] mask)
Method Detail

matches

public boolean matches(TagData t)
Description copied from interface: TagFilter
Test if a tag matches this filter. Only applies to selects based on the EPC.

Specified by:
matches in interface TagFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object