public class PeriodicTriggerValue extends TLVParameter
| Modifier and Type | Field and Description |
|---|---|
protected UnsignedInteger |
offset |
protected UnsignedInteger |
period |
static SignedShort |
TYPENUM |
protected UTCTimestamp |
uTCTimestamp |
RESERVEDLENGTH, TYPENUMBERLENGTHbitLength| Constructor and Description |
|---|
PeriodicTriggerValue()
empty constructor to create new parameter.
|
PeriodicTriggerValue(org.jdom.Element element)
Constructor to create parameter from xml encoded parameter
calls decodeXML to decode parameter.
|
PeriodicTriggerValue(LLRPBitList list)
Constructor to create parameter from binary encoded parameter
calls decodeBinary to decode parameter.
|
PeriodicTriggerValue(LLRPBitList list,
int bitIndex,
int length)
Constructor to create parameter from binary encoded parameter
calls decodeBinary to decode parameter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decodeBinarySpecific(LLRPBitList binary)
decoding function to be implemented by each parameter
|
void |
decodeXML(org.jdom.Element element)
create objects from xml.
|
LLRPBitList |
encodeBinarySpecific()
protected method to force subclasses to implement their specific encoding
|
org.jdom.Content |
encodeXML(java.lang.String name,
org.jdom.Namespace ns)
create xml representation of this parameter.
|
java.lang.String |
getName()
name of parameter (same as class name)
|
UnsignedInteger |
getOffset()
get offset of type UnsignedInteger.
|
UnsignedInteger |
getPeriod()
get period of type UnsignedInteger.
|
SignedShort |
getTypeNum()
type number uniquely identifies a parameter.
|
UTCTimestamp |
getUTCTimestamp()
get uTCTimestamp of type UTCTimestamp .
|
static java.lang.Integer |
length()
For TLV Parameter length can not be determined at compile time.
|
void |
setOffset(UnsignedInteger offset)
set offset of type UnsignedInteger .
|
void |
setPeriod(UnsignedInteger period)
set period of type UnsignedInteger .
|
void |
setUTCTimestamp(UTCTimestamp uTCTimestamp)
set uTCTimestamp of type UTCTimestamp.
|
java.lang.String |
toString()
return string representation.
|
decodeBinary, encodeBinarygetByteLengthpublic static final SignedShort TYPENUM
protected UnsignedInteger offset
protected UnsignedInteger period
protected UTCTimestamp uTCTimestamp
public PeriodicTriggerValue()
public PeriodicTriggerValue(LLRPBitList list)
list - to be decodedpublic PeriodicTriggerValue(LLRPBitList list, int bitIndex, int length)
list - to be decodedbitIndex - the bit at which to start decodinglength - the number of bits to decodepublic PeriodicTriggerValue(org.jdom.Element element)
throws InvalidLLRPMessageException
element - to be decodedInvalidLLRPMessageExceptionpublic LLRPBitList encodeBinarySpecific()
encodeBinarySpecific in class TLVParameterpublic org.jdom.Content encodeXML(java.lang.String name,
org.jdom.Namespace ns)
encodeXML in class LLRPParametername - of elementns - Namespace of elementsprotected void decodeBinarySpecific(LLRPBitList binary)
decodeBinarySpecific in class TLVParameterbinary - binary representation of the parameterpublic void decodeXML(org.jdom.Element element)
throws InvalidLLRPMessageException
decodeXML in class LLRPParameterelement - to be decodedInvalidLLRPMessageExceptionpublic void setOffset(UnsignedInteger offset)
offset - to be setpublic void setPeriod(UnsignedInteger period)
period - to be setpublic void setUTCTimestamp(UTCTimestamp uTCTimestamp)
uTCTimestamp - to be setpublic UnsignedInteger getOffset()
public UnsignedInteger getPeriod()
public UTCTimestamp getUTCTimestamp()
public static java.lang.Integer length()
public SignedShort getTypeNum()
getTypeNum in class LLRPParameterpublic java.lang.String getName()
getName in class LLRPParameterpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2007 ETH Zurich.