| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.llrp.ltk.types.LLRPParameter
org.llrp.ltk.types.TLVParameter
public abstract class TLVParameter
TLVParameter have type values from 128 to 1024 TLVParameters encode the length of a parameter when encoded. The binary encoding Is always: Reserved(6 Bits) | Parameter Type (10 Bits) | Parameter Length (16 Bits) | Parameters
| Field Summary | |
|---|---|
protected  int | 
RESERVEDLENGTH
 | 
protected  int | 
TYPENUMBERLENGTH
 | 
| Fields inherited from class org.llrp.ltk.types.LLRPParameter | 
|---|
bitLength | 
| Constructor Summary | |
|---|---|
TLVParameter()
 | 
|
| Method Summary | |
|---|---|
 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  | 
| Methods inherited from class org.llrp.ltk.types.LLRPParameter | 
|---|
decodeXML, encodeXML, getByteLength, getName, getTypeNum | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final int RESERVEDLENGTH
protected final int TYPENUMBERLENGTH
| Constructor Detail | 
|---|
public TLVParameter()
| Method Detail | 
|---|
public final void decodeBinary(LLRPBitList binary)
decodeBinary in class LLRPParameterbinary - list to be decoded
java.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()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||