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

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

public class XBeeAtPacketImpl
extends XBeeOutPktImpl


Field Summary
protected  java.lang.String atCmd
           
static byte CMD_ID
          Should be applied immediately
static int CMD_LEN
           
static byte CMD_NOIMMED_ID
          Should not be applied immediately
protected  XBeeAtCmd.Mode mode
          Command should be applied immediately?
protected  java.lang.String parms
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeOutPktImpl
frameId
 
Constructor Summary
XBeeAtPacketImpl()
           
XBeeAtPacketImpl(XBeeAtCmd.Mode mode_, byte frameId_, java.lang.String string, java.lang.String parms_)
           
 
Method Summary
 void acceptVisitor(XBeeApiPacketVisitor visitor)
           
 byte getCmdId()
           
 XBeeAtCmd.Mode getMode()
           
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.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

atCmd

protected java.lang.String atCmd

CMD_ID

public static final byte CMD_ID
Should be applied immediately

See Also:
Constant Field Values

CMD_LEN

public static final int CMD_LEN
See Also:
Constant Field Values

CMD_NOIMMED_ID

public static final byte CMD_NOIMMED_ID
Should not be applied immediately

See Also:
Constant Field Values

mode

protected XBeeAtCmd.Mode mode
Command should be applied immediately?


parms

protected java.lang.String parms
Constructor Detail

XBeeAtPacketImpl

public XBeeAtPacketImpl()

XBeeAtPacketImpl

public XBeeAtPacketImpl(XBeeAtCmd.Mode mode_,
                        byte frameId_,
                        java.lang.String string,
                        java.lang.String parms_)
                 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

getMode

public XBeeAtCmd.Mode getMode()

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