org.llrp.ltk.types
Class TwoBitEnumeration
java.lang.Object
org.llrp.ltk.types.LLRPType
org.llrp.ltk.types.LLRPNumberType
org.llrp.ltk.types.SignedByte
org.llrp.ltk.types.TwoBitEnumeration
- Direct Known Subclasses:
- C1G2TruncateAction
public class TwoBitEnumeration
- extends SignedByte
Enumerations that can hold 4 values (2 bits) at most
Constructor Summary |
TwoBitEnumeration()
Creates a new TwoBitEnumeration object. |
TwoBitEnumeration(org.jdom.Element element)
Creates a new TwoBitEnumeration object from jdom element - used for xml decoding |
TwoBitEnumeration(int value)
Creates a new TwoBitEnumeration object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TwoBitEnumeration
public TwoBitEnumeration()
- Creates a new TwoBitEnumeration object.
TwoBitEnumeration
public TwoBitEnumeration(org.jdom.Element element)
- Creates a new TwoBitEnumeration object from jdom element - used for xml decoding
- Parameters:
element
- to be decoded
TwoBitEnumeration
public TwoBitEnumeration(int value)
- Creates a new TwoBitEnumeration object.
- Parameters:
value
- to set
encodeBinary
public LLRPBitList encodeBinary()
- overwritte encode
- Overrides:
encodeBinary
in class SignedByte
- Returns:
- LLRPBitList of length 2
length
public static int length()
- number of bits to represent this type
- Returns:
- Integer
Copyright © 2007 ETH Zurich.