com.thingmagic
Enum Gen2.Select.Action

java.lang.Object
  extended by java.lang.Enum<Gen2.Select.Action>
      extended by com.thingmagic.Gen2.Select.Action
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Gen2.Select.Action>
Enclosing class:
Gen2.Select

public static enum Gen2.Select.Action
extends java.lang.Enum<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. _N_: The "_N_" stands for "Non-Matching". The clause before the _N_ describes what happens to Matching tags. The clause after the _N_ describes what happens to Non-Matching tags. (Alternately, you can pronounce "_N_" as "and", or "&"; i.e., the pair of Matching / Non-Matching actions is known as " and ".) ON: assert SL or inventoried -> A OFF: deassert SL or inventoried -> B NEG: negate SL or (A->B, B->A) NOP: do nothing The enum is simply a transliteration of the Gen2 spec's table: "Tag response to Action parameter"


Enum Constant Summary
NEG_N_NOP
           
NOP_N_NEG
           
NOP_N_OFF
           
NOP_N_ON
           
OFF_N_NOP
           
OFF_N_ON
           
ON_N_NOP
           
ON_N_OFF
           
 
Method Summary
static Gen2.Select.Action valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Gen2.Select.Action[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ON_N_OFF

public static final Gen2.Select.Action ON_N_OFF

ON_N_NOP

public static final Gen2.Select.Action ON_N_NOP

NOP_N_OFF

public static final Gen2.Select.Action NOP_N_OFF

NEG_N_NOP

public static final Gen2.Select.Action NEG_N_NOP

OFF_N_ON

public static final Gen2.Select.Action OFF_N_ON

OFF_N_NOP

public static final Gen2.Select.Action OFF_N_NOP

NOP_N_ON

public static final Gen2.Select.Action NOP_N_ON

NOP_N_NEG

public static final Gen2.Select.Action NOP_N_NEG
Method Detail

values

public static Gen2.Select.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Gen2.Select.Action c : Gen2.Select.Action.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Gen2.Select.Action valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null