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

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

public class XBee2ExplicitTxPacketImpl
extends XBeeOutPktImpl

XBee Series 2 explicit addressing request


Field Summary
protected  byte bcastRadius
           
protected  byte clusterId
           
static byte CMD_ID
           
protected  byte[] data
           
protected  byte destEndpoint
           
protected  XBee64Address longAddr
           
protected  short profileId
           
protected  XBee16Address shortAddr
           
protected  byte srcEndpoint
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
frameId
 
Constructor Summary
XBee2ExplicitTxPacketImpl()
           
XBee2ExplicitTxPacketImpl(byte frameId_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getCmdId()
           
 XBee64Address getLongAddr()
           
 XBee16Address getShortAddr()
           
 int getTxDataLen()
           
 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
 void setClusterId(byte b)
           
 void setData(byte[] data_)
           
 void setDestEndpoint(byte b)
           
 void setFrameId(byte frameId_)
           
 void setLongAddr(XBee64Address addr_)
           
 void setProfileId(short s)
           
 void setShortAddr(XBee16Address addr)
           
 void setSrcEndpoint(byte b)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
getFrameId
 
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

bcastRadius

protected byte bcastRadius

clusterId

protected byte clusterId

CMD_ID

public static final byte CMD_ID
See Also:
Constant Field Values

data

protected byte[] data

destEndpoint

protected byte destEndpoint

longAddr

protected XBee64Address longAddr

profileId

protected short profileId

shortAddr

protected XBee16Address shortAddr

srcEndpoint

protected byte srcEndpoint
Constructor Detail

XBee2ExplicitTxPacketImpl

public XBee2ExplicitTxPacketImpl()

XBee2ExplicitTxPacketImpl

public XBee2ExplicitTxPacketImpl(byte frameId_)
                          throws ModemException
Throws:
ModemException
Method Detail

acceptVisitor

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

getCmdId

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

getLongAddr

public XBee64Address getLongAddr()

getShortAddr

public XBee16Address getShortAddr()

getTxDataLen

public int getTxDataLen()

localGetData

public 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

setClusterId

public void setClusterId(byte b)

setData

public void setData(byte[] data_)
             throws ModemException
Throws:
ModemException

setDestEndpoint

public void setDestEndpoint(byte b)

setFrameId

public void setFrameId(byte frameId_)

setLongAddr

public void setLongAddr(XBee64Address addr_)

setProfileId

public void setProfileId(short s)

setShortAddr

public void setShortAddr(XBee16Address addr)

setSrcEndpoint

public void setSrcEndpoint(byte b)

toString

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