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

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.XBeeTxStatPktImpl
              extended by edu.uiuc.cs.seclab.modem.xbee.XBeeZbTxStatPacketImpl

public class XBeeZbTxStatPacketImpl
extends XBeeTxStatPktImpl

ZigBee transmission status packet


Nested Class Summary
static class XBeeZbTxStatPacketImpl.DeliveryStatus
           
static class XBeeZbTxStatPacketImpl.DiscoveryStatus
           
 
Field Summary
static byte CMD_ID
           
protected  XBeeZbTxStatPacketImpl.DeliveryStatus delStat
           
protected  XBee16Address destShortAddr
           
protected  XBeeZbTxStatPacketImpl.DiscoveryStatus discStat
           
protected  short txRetryCnt
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeTxStatPktImpl
dataLen
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
frameId
 
Constructor Summary
XBeeZbTxStatPacketImpl()
           
XBeeZbTxStatPacketImpl(byte frameId_, XBeeZbTxStatPacketImpl.DeliveryStatus delStat_, XBeeZbTxStatPacketImpl.DiscoveryStatus discStat_, short txRetryCnt_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getCmdId()
           
 XBeeZbTxStatPacketImpl.DeliveryStatus getDelStat()
           
 XBee16Address getDestShortAddr()
           
 XBeeZbTxStatPacketImpl.DiscoveryStatus getDiscStat()
           
 boolean isSuccessful()
          Return true if status indicates delivery success
 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.XBeeTxStatPktImpl
getDataLen, setDataLen
 
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

CMD_ID

public static final byte CMD_ID
See Also:
Constant Field Values

delStat

protected XBeeZbTxStatPacketImpl.DeliveryStatus delStat

destShortAddr

protected XBee16Address destShortAddr

discStat

protected XBeeZbTxStatPacketImpl.DiscoveryStatus discStat

txRetryCnt

protected short txRetryCnt
Constructor Detail

XBeeZbTxStatPacketImpl

public XBeeZbTxStatPacketImpl()

XBeeZbTxStatPacketImpl

public XBeeZbTxStatPacketImpl(byte frameId_,
                              XBeeZbTxStatPacketImpl.DeliveryStatus delStat_,
                              XBeeZbTxStatPacketImpl.DiscoveryStatus discStat_,
                              short txRetryCnt_)
Method Detail

acceptVisitor

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

getCmdId

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

getDelStat

public XBeeZbTxStatPacketImpl.DeliveryStatus getDelStat()

getDestShortAddr

public XBee16Address getDestShortAddr()

getDiscStat

public XBeeZbTxStatPacketImpl.DiscoveryStatus getDiscStat()

isSuccessful

public boolean isSuccessful()
Description copied from class: XBeeTxStatPktImpl
Return true if status indicates delivery success

Specified by:
isSuccessful in class XBeeTxStatPktImpl
Returns:

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

toString

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