org.llrp.ltk.types
Class TVParameter

java.lang.Object
  extended by org.llrp.ltk.types.LLRPParameter
      extended by org.llrp.ltk.types.TVParameter
Direct Known Subclasses:
AccessSpecID, AntennaID, C1G2_CRC, C1G2_PC, C1G2SingulationDetails, ChannelIndex, EPC_96, FirstSeenTimestampUptime, FirstSeenTimestampUTC, InventoryParameterSpecID, LastSeenTimestampUptime, LastSeenTimestampUTC, OpSpecID, PeakRSSI, ROSpecID, SpecIndex, TagSeenCount

public abstract class TVParameter
extends LLRPParameter

TV Parameter do not encode length as the length is implicitly given by the type TV parameter have type values from 0 to 127 TV Parameters encode the length of a parameter when encoded. The binary encoding Is always: Reserved (Bit set to 1) Parameter Type (7 Bits) | Parameter Value


Field Summary
protected static int PARAMETERTYPELENGTH
           
 
Fields inherited from class org.llrp.ltk.types.LLRPParameter
bitLength
 
Constructor Summary
TVParameter()
           
 
Method Summary
 void decodeBinary(LLRPBitList bits)
          decodeBinary should be called from Constructor Taking binary encoded parameter as argument.
protected abstract  void decodeBinarySpecific(LLRPBitList binary)
          function to be implemented
 LLRPBitList encodeBinary()
          encode 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

PARAMETERTYPELENGTH

protected static final int PARAMETERTYPELENGTH
See Also:
Constant Field Values
Constructor Detail

TVParameter

public TVParameter()
Method Detail

decodeBinary

public void decodeBinary(LLRPBitList bits)
decodeBinary should be called from Constructor Taking binary encoded parameter as argument.

Specified by:
decodeBinary in class LLRPParameter
Parameters:
bits - to be decoded
Throws:
LLRPException - in case of any error or unexpected behaviour

encodeBinary

public LLRPBitList encodeBinary()
encode parameter

Specified by:
encodeBinary in class LLRPParameter
Returns:
LLRPBitList

decodeBinarySpecific

protected abstract void decodeBinarySpecific(LLRPBitList binary)
function to be implemented

Parameters:
binary - binary representation of this parameter

encodeBinarySpecific

protected abstract LLRPBitList encodeBinarySpecific()
protected method to force subclasses to implement their specific encoding

Returns:
LLRPBitList


Copyright © 2007 ETH Zurich.