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

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

public class XBee2AdvStatusPacketImpl
extends XBeeApiPacketImpl

Advanced status packet supported by XBee Series 2 [64-bit addr][16-bit addr][type][join action][bind table idx][bind type]


Nested Class Summary
static class XBee2AdvStatusPacketImpl.BindType
           
static class XBee2AdvStatusPacketImpl.JoinAction
           
static class XBee2AdvStatusPacketImpl.NodeType
           
 
Field Summary
protected  int bindTableIdx
           
protected  XBee2AdvStatusPacketImpl.BindType bindType
           
static byte CMD_ID
           
protected  XBee2AdvStatusPacketImpl.JoinAction joinAct
           
protected  XBee64Address longAddr
           
protected  XBee16Address shortAddr
           
protected  XBee2AdvStatusPacketImpl.NodeType type
           
 
Constructor Summary
XBee2AdvStatusPacketImpl()
           
XBee2AdvStatusPacketImpl(XBee64Address longAddr_, XBee16Address shortAddr_, XBee2AdvStatusPacketImpl.NodeType type_, XBee2AdvStatusPacketImpl.JoinAction joinAct_, int bindTableIdx_, XBee2AdvStatusPacketImpl.BindType bindType_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getCmdId()
           
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

bindTableIdx

protected int bindTableIdx

bindType

protected XBee2AdvStatusPacketImpl.BindType bindType

CMD_ID

public static final byte CMD_ID
See Also:
Constant Field Values

joinAct

protected XBee2AdvStatusPacketImpl.JoinAction joinAct

longAddr

protected XBee64Address longAddr

shortAddr

protected XBee16Address shortAddr

type

protected XBee2AdvStatusPacketImpl.NodeType type
Constructor Detail

XBee2AdvStatusPacketImpl

public XBee2AdvStatusPacketImpl()

XBee2AdvStatusPacketImpl

public XBee2AdvStatusPacketImpl(XBee64Address longAddr_,
                                XBee16Address shortAddr_,
                                XBee2AdvStatusPacketImpl.NodeType type_,
                                XBee2AdvStatusPacketImpl.JoinAction joinAct_,
                                int bindTableIdx_,
                                XBee2AdvStatusPacketImpl.BindType bindType_)
Method Detail

acceptVisitor

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

getCmdId

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

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)
Description copied from class: XBeeApiPacketImpl
Parse the inner part of an API packet

Specified by:
parse in class XBeeApiPacketImpl

toString

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