edu.uiuc.cs.seclab.modem.xbee
Class XBee2ExplicitRxPacketImpl

java.lang.Object
  extended by edu.uiuc.cs.seclab.modem.xbee.XBeeApiPacketImpl
      extended by edu.uiuc.cs.seclab.modem.xbee.XBee2ExplicitRxPacketImpl

public class XBee2ExplicitRxPacketImpl
extends XBeeApiPacketImpl

Received packet


Field Summary
protected  byte clusterId
           
static byte CMD_ID
           
protected  java.lang.String data
           
protected  byte destEndpoint
           
protected  XBee64Address longSrcAddr
           
protected  short profileId
           
protected  XBee16Address shortSrcAddr
           
protected  byte srcEndpoint
           
 
Constructor Summary
XBee2ExplicitRxPacketImpl()
           
XBee2ExplicitRxPacketImpl(XBee64Address longSrcAddr_, XBee16Address shortSrcAddr_, byte srcEndpoint_, byte destEndpoint_, byte clusterId_, short profileId_, java.lang.String data_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getClusterId()
           
 byte getCmdId()
           
 byte getDestEndpoint()
           
 XBee64Address getLongSrcAddr()
           
 short getProfileId()
           
 java.lang.String getRxData()
           
 XBee16Address getShortSrcAddr()
           
 byte getSrcEndpoint()
           
protected  void localGetData(java.lang.StringBuilder sb)
          Produce a data blob for the inner part of an API packet
 void parse(byte cmdId, byte[] bytes, int offset, int len)
          Parse the inner part of an API packet
 java.lang.String toString()
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeApiPacketImpl
getData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clusterId

protected byte clusterId

CMD_ID

public static final byte CMD_ID
See Also:
Constant Field Values

data

protected java.lang.String data

destEndpoint

protected byte destEndpoint

longSrcAddr

protected XBee64Address longSrcAddr

profileId

protected short profileId

shortSrcAddr

protected XBee16Address shortSrcAddr

srcEndpoint

protected byte srcEndpoint
Constructor Detail

XBee2ExplicitRxPacketImpl

public XBee2ExplicitRxPacketImpl()

XBee2ExplicitRxPacketImpl

public XBee2ExplicitRxPacketImpl(XBee64Address longSrcAddr_,
                                 XBee16Address shortSrcAddr_,
                                 byte srcEndpoint_,
                                 byte destEndpoint_,
                                 byte clusterId_,
                                 short profileId_,
                                 java.lang.String data_)
                          throws ModemException
Throws:
ModemException
Method Detail

acceptVisitor

public void acceptVisitor(XBeeApiPacketVisitor visitor)
Specified by:
acceptVisitor in class XBeeApiPacketImpl

getClusterId

public byte getClusterId()

getCmdId

public byte getCmdId()
Specified by:
getCmdId in class XBeeApiPacketImpl

getDestEndpoint

public byte getDestEndpoint()

getLongSrcAddr

public XBee64Address getLongSrcAddr()

getProfileId

public short getProfileId()

getRxData

public java.lang.String getRxData()

getShortSrcAddr

public XBee16Address getShortSrcAddr()

getSrcEndpoint

public byte getSrcEndpoint()

localGetData

protected void localGetData(java.lang.StringBuilder sb)
Description copied from class: XBeeApiPacketImpl
Produce a data blob for the inner part of an API packet

Specified by:
localGetData in class XBeeApiPacketImpl

parse

public void parse(byte cmdId,
                  byte[] bytes,
                  int offset,
                  int len)
           throws ModemException
Description copied from class: XBeeApiPacketImpl
Parse the inner part of an API packet

Specified by:
parse in class XBeeApiPacketImpl
Throws:
ModemException

toString

public java.lang.String toString()
Overrides:
toString in class XBeeApiPacketImpl