org.llrp.ltk.types
Class TLVParameter

java.lang.Object
  extended by org.llrp.ltk.types.LLRPParameter
      extended by org.llrp.ltk.types.TLVParameter
Direct Known Subclasses:
AccessCommand, AccessReportSpec, AccessSpec, AccessSpecStopTrigger, AISpec, AISpecEvent, AISpecStopTrigger, AntennaConfiguration, AntennaEvent, AntennaProperties, C1G2BlockErase, C1G2BlockEraseOpSpecResult, C1G2BlockWrite, C1G2BlockWriteOpSpecResult, C1G2EPCMemorySelector, C1G2Filter, C1G2InventoryCommand, C1G2Kill, C1G2KillOpSpecResult, C1G2LLRPCapabilities, C1G2Lock, C1G2LockOpSpecResult, C1G2LockPayload, C1G2Read, C1G2ReadOpSpecResult, C1G2RFControl, C1G2SingulationControl, C1G2TagInventoryMask, C1G2TagInventoryStateAwareFilterAction, C1G2TagInventoryStateAwareSingulationAction, C1G2TagInventoryStateUnawareFilterAction, C1G2TagSpec, C1G2TargetTag, C1G2UHFRFModeTable, C1G2UHFRFModeTableEntry, C1G2Write, C1G2WriteOpSpecResult, ConnectionAttemptEvent, ConnectionCloseEvent, Custom, EPCData, EventNotificationState, EventsAndReports, FieldError, FixedFrequencyTable, FrequencyHopTable, FrequencyInformation, FrequencyRSSILevelEntry, GeneralDeviceCapabilities, GPIEvent, GPIOCapabilities, GPIPortCurrentState, GPITriggerValue, GPOWriteData, HoppingEvent, Identification, InventoryParameterSpec, KeepaliveSpec, LLRPCapabilities, LLRPConfigurationStateValue, LLRPStatus, ParameterError, PerAntennaAirProtocol, PerAntennaReceiveSensitivityRange, PeriodicTriggerValue, ReaderEventNotificationData, ReaderEventNotificationSpec, ReaderExceptionEvent, ReceiveSensitivityTableEntry, RegulatoryCapabilities, ReportBufferLevelWarningEvent, ReportBufferOverflowErrorEvent, RFReceiver, RFSurveyEvent, RFSurveyReportData, RFSurveySpec, RFSurveySpecStopTrigger, RFTransmitter, ROBoundarySpec, ROReportSpec, ROSpec, ROSpecEvent, ROSpecStartTrigger, ROSpecStopTrigger, TagObservationTrigger, TagReportContentSelector, TagReportData, TransmitPowerLevelTableEntry, UHFBandCapabilities, Uptime, UTCTimestamp

public abstract class TLVParameter
extends LLRPParameter

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

RESERVEDLENGTH

protected final int RESERVEDLENGTH
See Also:
Constant Field Values

TYPENUMBERLENGTH

protected final int TYPENUMBERLENGTH
See Also:
Constant Field Values
Constructor Detail

TLVParameter

public TLVParameter()
Method Detail

decodeBinary

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

Specified by:
decodeBinary in class LLRPParameter
Parameters:
binary - list to be decoded
Throws:
java.lang.IllegalArgumentException - in case of any error or unexpected behaviour

encodeBinary

public final LLRPBitList encodeBinary()
create binary encoding of this parameter. Returns a LLRPBitList which can concatenated with binary encoding of other parameters to form a binary encoded messages

Specified by:
encodeBinary in class LLRPParameter
Returns:
LLRPBitList

decodeBinarySpecific

protected abstract void decodeBinarySpecific(LLRPBitList binary)
decoding function to be implemented by each parameter

Parameters:
binary - binary representation of the parameter

encodeBinarySpecific

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

Returns:
LLRPBitList


Copyright © 2007 ETH Zurich.