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

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.XBeeTxStatPacketImpl

public class XBeeTxStatPacketImpl
extends XBeeTxStatPktImpl

802.15.4 transmission status packet


Nested Class Summary
static class XBeeTxStatPacketImpl.Status
           
 
Field Summary
static byte CMD_ID
           
protected  XBeeTxStatPacketImpl.Status stat
           
 
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
XBeeTxStatPacketImpl()
           
XBeeTxStatPacketImpl(byte frameId_, XBeeTxStatPacketImpl.Status stat_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getCmdId()
           
 XBeeTxStatPacketImpl.Status getStat()
           
 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

stat

protected XBeeTxStatPacketImpl.Status stat
Constructor Detail

XBeeTxStatPacketImpl

public XBeeTxStatPacketImpl()

XBeeTxStatPacketImpl

public XBeeTxStatPacketImpl(byte frameId_,
                            XBeeTxStatPacketImpl.Status stat_)
Method Detail

acceptVisitor

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

getCmdId

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

getStat

public XBeeTxStatPacketImpl.Status getStat()

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