org.fosstrak.llrp.commander.editors
Class BinaryMessage

java.lang.Object
  extended by org.fosstrak.llrp.commander.editors.BinaryMessage

public class BinaryMessage
extends java.lang.Object

This is a wrapper class for LLRP Binary Message.

Version:
1.0
Author:
Haoning Zhang, sawielan

Constructor Summary
BinaryMessage()
          Constructor, to set the default values.
BinaryMessage(java.lang.String aContent)
          Constructor, with XML Message as input.
 
Method Summary
 BinarySingleValue getMsgID()
          Get MessageID value from LLRP message.
 BinarySingleValue getMsgLength()
          Get MessageLength value from LLRP message.
 BinarySingleValue getMsgType()
          Get MessageType value from LLRP message.
 BinarySingleValue getParameters()
          Get Parameters value from LLRP message.
 BinarySingleValue getReserved()
          Get Reserved value from LLRP message.
 BinarySingleValue[] getSplitParameters()
          get the parameters value as an array split.
 BinarySingleValue getVersion()
          Get Version value from LLRP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryMessage

public BinaryMessage()
Constructor, to set the default values.


BinaryMessage

public BinaryMessage(java.lang.String aContent)
              throws java.lang.Exception
Constructor, with XML Message as input. The constructor initialize the message from LLRP XML Message.

Parameters:
aContent - LLRP XML Message
Throws:
java.lang.Exception - if message is not valid.
Method Detail

getReserved

public BinarySingleValue getReserved()
Get Reserved value from LLRP message.

Returns:
Reserved value

getVersion

public BinarySingleValue getVersion()
Get Version value from LLRP message.

Returns:
Version value

getMsgType

public BinarySingleValue getMsgType()
Get MessageType value from LLRP message.

Returns:
Message Type value

getMsgLength

public BinarySingleValue getMsgLength()
Get MessageLength value from LLRP message.

Returns:
Message Length value

getMsgID

public BinarySingleValue getMsgID()
Get MessageID value from LLRP message.

Returns:
Message ID value

getParameters

public BinarySingleValue getParameters()
Get Parameters value from LLRP message.

Returns:
All parameters value

getSplitParameters

public BinarySingleValue[] getSplitParameters()
get the parameters value as an array split. This is a quick fix to circumvent the eclipse table view in-capability to display line feeds.

Returns:
an array holding the parameters as an array.


Copyright © 2009. All Rights Reserved.