public class BitList extends LLRPType
| Constructor and Description |
|---|
BitList()
Creates a new BitList object.
|
BitList(Bit[] bits)
Generate a list of bits - bit[0] is the least significant bit.
|
BitList(int l)
Generate a list of bits.
|
BitList(java.lang.Integer... integers) |
BitList(java.lang.Integer l) |
BitList(LLRPBitList list)
Creates a new BitList object.
|
BitList(java.lang.String bitString)
create BitList - String must consist of numbers only.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int i)
set Bit at specified position to 0.
|
void |
clear(java.lang.Integer i) |
void |
decodeBinary(LLRPBitList list)
decode bits from BitList.
|
void |
decodeXML(org.jdom.Element element)
create objects from xml.
|
LLRPBitList |
encodeBinary()
just like BitArray but does not encode length before values.
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
Bit |
get(int i)
get bit at specified position.
|
Bit |
get(java.lang.Integer i) |
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML
|
int |
intValue() |
int |
length()
length of the list.
|
void |
set(int i)
set Bit at specified position to 1.
|
void |
set(java.lang.Integer i) |
void |
setValue(int value) |
java.lang.Integer |
toInteger() |
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
toXMLStringpublic BitList(Bit[] bits)
bits - to be decodedpublic BitList(java.lang.String bitString)
bitString - to be decodedpublic BitList(LLRPBitList list)
list - to be decodedpublic BitList(java.lang.Integer... integers)
public BitList(int l)
l - lengthpublic BitList(java.lang.Integer l)
public BitList()
public void setValue(int value)
public void clear(int i)
i - position to clearpublic void clear(java.lang.Integer i)
public LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic int length()
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic Bit get(int i)
i - position to getpublic Bit get(java.lang.Integer i)
public void set(int i)
i - position to be setpublic void set(java.lang.Integer i)
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPTypepublic void decodeXML(org.jdom.Element element)
LLRPTypepublic java.lang.Integer toInteger()
public int intValue()
public java.lang.String toString()
LLRPTypeCopyright © 2007 ETH Zurich.