org.llrp.ltk.generated.enumerations
Class C1G2StateAwareAction

java.lang.Object
  extended by org.llrp.ltk.types.LLRPType
      extended by org.llrp.ltk.types.LLRPNumberType
          extended by org.llrp.ltk.types.UnsignedByte
              extended by org.llrp.ltk.generated.enumerations.C1G2StateAwareAction
All Implemented Interfaces:
LLRPEnumeration

public class C1G2StateAwareAction
extends UnsignedByte
implements LLRPEnumeration

C1G2StateAwareAction is Enumeration of Type UnsignedByte


Field Summary
static int AssertSLOrA_DeassertSLOrB
           
static int AssertSLOrA_Noop
           
static int DeassertSLOrB_AssertSLOrA
           
static int DeassertSLOrB_Noop
           
static int NegateSLOrABBA_Noop
           
static int Noop_AssertSLOrA
           
static int Noop_DeassertSLOrB
           
static int Noop_NegateSLOrABBA
           
 
Fields inherited from class org.llrp.ltk.types.UnsignedByte
value
 
Fields inherited from class org.llrp.ltk.types.LLRPNumberType
signed
 
Constructor Summary
C1G2StateAwareAction()
           
C1G2StateAwareAction(org.jdom.Element element)
          Create new C1G2StateAwareAction by passing jdom element.
C1G2StateAwareAction(int value)
          Create new C1G2StateAwareAction by passing integer value.
C1G2StateAwareAction(LLRPBitList list)
          Create new C1G2StateAwareAction by passing LLRPBitList.
C1G2StateAwareAction(java.lang.String name)
          Create new C1G2StateAwareAction by passing a string.
 
Method Summary
 org.jdom.Content encodeXML(java.lang.String name, org.jdom.Namespace ns)
          create xml representation of this parameter.
 java.lang.String getName(int value)
          get name of a value if no name can be found for given value return empty string.
 int getValue(java.lang.String name)
          get value of a name representing a value if no value can be found, return -1.
 boolean isValidName(java.lang.String name)
          check if the name stands for an allowed value of this enumeration.
 boolean isValidValue(int value)
          check if a value is allowed for an enumeration.
static int length()
          number of bits used to represent this type.
 void set(int value)
          set the current value of this enumeration to the value given.
 void set(java.lang.String name)
          set the current value of this enumeration to the value identified by given string.
 java.lang.String toString()
          String representation
 
Methods inherited from class org.llrp.ltk.types.UnsignedByte
decodeBinary, decodeXML, encodeBinary, inRange, inRange, toByte, toInteger, toString
 
Methods inherited from class org.llrp.ltk.types.LLRPNumberType
equals, hashCode, intValue
 
Methods inherited from class org.llrp.ltk.types.LLRPType
toXMLString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.llrp.ltk.types.LLRPEnumeration
intValue
 

Field Detail

AssertSLOrA_DeassertSLOrB

public static final int AssertSLOrA_DeassertSLOrB
See Also:
Constant Field Values

AssertSLOrA_Noop

public static final int AssertSLOrA_Noop
See Also:
Constant Field Values

Noop_DeassertSLOrB

public static final int Noop_DeassertSLOrB
See Also:
Constant Field Values

NegateSLOrABBA_Noop

public static final int NegateSLOrABBA_Noop
See Also:
Constant Field Values

DeassertSLOrB_AssertSLOrA

public static final int DeassertSLOrB_AssertSLOrA
See Also:
Constant Field Values

DeassertSLOrB_Noop

public static final int DeassertSLOrB_Noop
See Also:
Constant Field Values

Noop_AssertSLOrA

public static final int Noop_AssertSLOrA
See Also:
Constant Field Values

Noop_NegateSLOrABBA

public static final int Noop_NegateSLOrABBA
See Also:
Constant Field Values
Constructor Detail

C1G2StateAwareAction

public C1G2StateAwareAction()

C1G2StateAwareAction

public C1G2StateAwareAction(int value)
Create new C1G2StateAwareAction by passing integer value.

Parameters:
value - an Integer value allowed - might check first with isValidValue it it is an allowed value
Throws:
java.lang.IllegalArgumentException - if the value is not allowed for this enumeration

C1G2StateAwareAction

public C1G2StateAwareAction(org.jdom.Element element)
Create new C1G2StateAwareAction by passing jdom element.

Parameters:
element - - jdom element where the child is a string that is the name for a value of the enumeration.
Throws:
java.lang.IllegalArgumentException - if the value found in element is not allowed for this enumeration.

C1G2StateAwareAction

public C1G2StateAwareAction(java.lang.String name)
Create new C1G2StateAwareAction by passing a string.

Throws:
java.lang.IllegalArgumentException - if the string does not stand for a valid value.

C1G2StateAwareAction

public C1G2StateAwareAction(LLRPBitList list)
Create new C1G2StateAwareAction by passing LLRPBitList.

Parameters:
list - - LLRPBitList
Throws:
java.lang.IllegalArgumentException - if the value found in the BitList is not allowed for this enumeration.
Method Detail

set

public final void set(java.lang.String name)
set the current value of this enumeration to the value identified by given string.

Specified by:
set in interface LLRPEnumeration
Parameters:
name - set this enumeration to hold one of the allowed values
Throws:
java.lang.IllegalArgumentException - if the value found for given String is not allowed for this enumeration.

set

public final void set(int value)
set the current value of this enumeration to the value given.

Specified by:
set in interface LLRPEnumeration
Parameters:
value - to be set
Throws:
java.lang.IllegalArgumentException - if the value is not allowed for this enumeration.

encodeXML

public org.jdom.Content encodeXML(java.lang.String name,
                                  org.jdom.Namespace ns)
create xml representation of this parameter.

Overrides:
encodeXML in class UnsignedByte
Parameters:
name - returned content should have
ns - Namespace of elements

toString

public java.lang.String toString()
String representation

Specified by:
toString in interface LLRPEnumeration
Overrides:
toString in class UnsignedByte
Returns:
String

isValidValue

public boolean isValidValue(int value)
check if a value is allowed for an enumeration.

Specified by:
isValidValue in interface LLRPEnumeration
Parameters:
value - to set
Returns:
boolean

getValue

public final int getValue(java.lang.String name)
get value of a name representing a value if no value can be found, return -1.

Specified by:
getValue in interface LLRPEnumeration
Parameters:
name - for value
Returns:
int

getName

public final java.lang.String getName(int value)
get name of a value if no name can be found for given value return empty string.

Specified by:
getName in interface LLRPEnumeration
Parameters:
value - of name
Returns:
String

isValidName

public boolean isValidName(java.lang.String name)
check if the name stands for an allowed value of this enumeration.

Specified by:
isValidName in interface LLRPEnumeration
Parameters:
name - to check
Returns:
boolean

length

public static int length()
number of bits used to represent this type.

Returns:
Integer


Copyright © 2007 ETH Zurich.