edu.uiuc.cs.seclab.modem.xbee.cmd
Class XBee16SrcAddrCmd

java.lang.Object
  extended by edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
      extended by edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
          extended by edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
              extended by edu.uiuc.cs.seclab.modem.xbee.XBeeShortParamCmd
                  extended by edu.uiuc.cs.seclab.modem.xbee.cmd.XBee16SrcAddrCmd
All Implemented Interfaces:
java.lang.Cloneable

public class XBee16SrcAddrCmd
extends XBeeShortParamCmd

ATMY - Set 16-bit source address


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
XBeeNumParamCmd.Representation
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
XBeeAtCmd.Mode
 
Field Summary
protected  XBee16Address addr
           
static java.lang.String CMD
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
HEX_CHARS_PER_BYTE, PT_RADIX
 
Constructor Summary
XBee16SrcAddrCmd()
           
 
Method Summary
 java.lang.String getAtCmd()
          Get the two-character AT code associated with this command.
 XBeeNumParamCmd.Representation getRepresentation()
          Address should be presented in binary or hex format, not as a decimal number
protected  short getSetterVal()
           
 java.lang.String getShortDesc()
          Return a short (one-line) description for command suitable for display in parameter table.
 void localSetVal(short s)
           
 void setAddr(XBee16Address addr_)
           
 java.lang.Object unmarshalApiGetterParams(java.lang.String data)
          Convert command parameters from API-mode format to raw format.
 java.lang.Object unmarshalPtGetterParams(java.lang.String data)
          Convert command parameters from PassThru-mode format.
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeShortParamCmd
getApiParamLength, getMaxVal, getMinVal, getRawSetterParams, localSetVal, marshalApiSetterParams, marshalPtSetterParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
getDefVal, marshalApiSetterParams, setVal
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
clone, convertApiResponse, getApiParams, isReadOnly, parmEq, unmarshalRespParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
getPktImpl, processResp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addr

protected XBee16Address addr

CMD

public static final java.lang.String CMD
See Also:
Constant Field Values
Constructor Detail

XBee16SrcAddrCmd

public XBee16SrcAddrCmd()
Method Detail

getAtCmd

public java.lang.String getAtCmd()
Description copied from class: XBeeAtCmd
Get the two-character AT code associated with this command.

Specified by:
getAtCmd in class XBeeAtCmd

getRepresentation

public XBeeNumParamCmd.Representation getRepresentation()
Address should be presented in binary or hex format, not as a decimal number

Overrides:
getRepresentation in class XBeeNumParamCmd

getSetterVal

protected short getSetterVal()
Specified by:
getSetterVal in class XBeeShortParamCmd

getShortDesc

public java.lang.String getShortDesc()
Description copied from class: XBeeAtCmd
Return a short (one-line) description for command suitable for display in parameter table.

Specified by:
getShortDesc in class XBeeAtCmd

localSetVal

public void localSetVal(short s)
                 throws ModemException
Specified by:
localSetVal in class XBeeShortParamCmd
Throws:
ModemException

setAddr

public void setAddr(XBee16Address addr_)

unmarshalApiGetterParams

public java.lang.Object unmarshalApiGetterParams(java.lang.String data)
                                          throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters from API-mode format to raw format.

Overrides:
unmarshalApiGetterParams in class XBeeShortParamCmd
Returns:
Throws:
ModemException

unmarshalPtGetterParams

public java.lang.Object unmarshalPtGetterParams(java.lang.String data)
                                         throws ModemException
Description copied from class: XBeeParamCmd
Convert command parameters from PassThru-mode format. Not currently used, since API-mode is used throughout rest of framework.

Overrides:
unmarshalPtGetterParams in class XBeeShortParamCmd
Returns:
Throws:
ModemException