public abstract class TLVParameter extends LLRPParameter
| Modifier and Type | Field and Description |
|---|---|
protected int |
RESERVEDLENGTH |
protected int |
TYPENUMBERLENGTH |
bitLength| Constructor and Description |
|---|
TLVParameter() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeBinary(LLRPBitList binary)
decodeBinary should be called from Constructor Taking binary encoded
parameter as argument
|
protected abstract void |
decodeBinarySpecific(LLRPBitList binary)
decoding function to be implemented by each parameter
|
LLRPBitList |
encodeBinary()
create binary encoding of this parameter.
|
protected abstract LLRPBitList |
encodeBinarySpecific()
protected method to force subclasses to implement their specific encoding
|
decodeXML, encodeXML, getByteLength, getName, getTypeNumprotected final int RESERVEDLENGTH
protected final int TYPENUMBERLENGTH
public final void decodeBinary(LLRPBitList binary)
decodeBinary in class LLRPParameterbinary - list to be decodedjava.lang.IllegalArgumentException - in case of any error or unexpected behaviourpublic final LLRPBitList encodeBinary()
encodeBinary in class LLRPParameterprotected abstract void decodeBinarySpecific(LLRPBitList binary)
binary - binary representation of the parameterprotected abstract LLRPBitList encodeBinarySpecific()
Copyright © 2007 ETH Zurich.