Package com.caen.RFIDLibrary
Enum CAENRFIDReaderEventMode
- java.lang.Object
-
- java.lang.Enum<CAENRFIDReaderEventMode>
-
- com.caen.RFIDLibrary.CAENRFIDReaderEventMode
-
- All Implemented Interfaces:
Serializable,Comparable<CAENRFIDReaderEventMode>
public enum CAENRFIDReaderEventMode extends Enum<CAENRFIDReaderEventMode>
This enum represents event mode values used by CAENRFIDReader.SetEventMode(HashSet) or CAENRFIDReader.GetEventMode() methods. User can Or-ing the raw values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EVTMODE_NO_EVENTEvent generation off (default).EVTMODE_POWER_EVENTEvent generation on power button events.EVTMODE_TRIGGER_EVENTEvent generation on trigger button events.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description shortvalue()The value of the enumeration.static CAENRFIDReaderEventModevalueOf(String name)Returns the enum constant of this type with the specified name.static CAENRFIDReaderEventMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EVTMODE_NO_EVENT
public static final CAENRFIDReaderEventMode EVTMODE_NO_EVENT
Event generation off (default).
-
EVTMODE_TRIGGER_EVENT
public static final CAENRFIDReaderEventMode EVTMODE_TRIGGER_EVENT
Event generation on trigger button events. NOTE:Don't confuse this event with theCAENRFIDLogicalSource.InventoryFlag.EVENT_TRIGGERflag: If user application needs to inventory tags on button press, call theCAENRFIDLogicalSource.EventInventoryTag(byte[], short, short, long)or one of its override with theCAENRFIDLogicalSource.InventoryFlag.EVENT_TRIGGERflag enabled.
-
EVTMODE_POWER_EVENT
public static final CAENRFIDReaderEventMode EVTMODE_POWER_EVENT
Event generation on power button events.
-
-
Method Detail
-
values
public static CAENRFIDReaderEventMode[] 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 (CAENRFIDReaderEventMode c : CAENRFIDReaderEventMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CAENRFIDReaderEventMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public short value()
The value of the enumeration.- Returns:
- A short integer representing the value of this enumeration.
-
-