public class SignedShortArray extends LLRPType
| Modifier and Type | Field and Description |
|---|---|
protected SignedShort[] |
shorts |
| Constructor and Description |
|---|
SignedShortArray()
Creates an empty SignedShortArray.
|
SignedShortArray(org.jdom.Element element)
Creates a new SignedShortArray object from jdom element - used for xml
decoding
|
SignedShortArray(int length)
Creates a new SignedShortArray object.
|
SignedShortArray(LLRPBitList bits)
first 16 bits of LLRPBitlist must indicate number of entries that follow
|
SignedShortArray(LLRPBitList bitList,
int bitIndex,
int length) |
SignedShortArray(short[] data) |
SignedShortArray(SignedShort[] shorts)
Creates a new SignedShortArray object.
|
SignedShortArray(java.lang.String shortString)
Creates a new SignedShortArray object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(SignedShort aShort) |
void |
decodeBinary(LLRPBitList list)
first 16 bits of LLRPBitlist must indicate number of entries that follow
|
void |
decodeXML(org.jdom.Element element)
create objects from xml.
|
LLRPBitList |
encodeBinary()
encodes length before encoding containing values
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
boolean |
equals(LLRPType other)
compare each element
|
SignedShort |
get(int i)
get SignedShort at specified position
|
int |
getBitLength()
lenght in bits
|
int |
getByteLength()
length in bytes
|
int |
hashCode() |
boolean |
inRange(java.lang.String valueString)
expects a string as formated for XML
|
static int |
length()
length of BaseType not array - for array length call size()
|
void |
set(int i,
SignedShort b)
set SignedShort at given location
|
int |
size()
number of elements in array
|
short[] |
toShortArray() |
java.lang.String |
toString()
String representation
|
java.lang.String |
toString(int radix) |
toXMLStringprotected SignedShort[] shorts
public SignedShortArray(SignedShort[] shorts)
shorts - to create array frompublic SignedShortArray(java.lang.String shortString)
shortString - of shortspublic SignedShortArray(short[] data)
public SignedShortArray(org.jdom.Element element)
element - to be decodedpublic SignedShortArray(int length)
length - of arraypublic SignedShortArray(LLRPBitList bits)
bits - to be decodedpublic SignedShortArray(LLRPBitList bitList, int bitIndex, int length)
public SignedShortArray()
public void decodeBinary(LLRPBitList list)
decodeBinary in class LLRPTypelist - to be decodedpublic LLRPBitList encodeBinary()
encodeBinary in class LLRPTypepublic boolean equals(LLRPType other)
other - to comparepublic SignedShort get(int i)
i - positionpublic int getBitLength()
public int getByteLength()
public static int length()
public void set(int i,
SignedShort b)
i - positionb - SignedShort to be setpublic int size()
public org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
LLRPTypepublic void decodeXML(org.jdom.Element element)
LLRPTypepublic void add(SignedShort aShort)
public int hashCode()
hashCode in class java.lang.Objectpublic short[] toShortArray()
public java.lang.String toString()
LLRPTypeCopyright © 2007 ETH Zurich.