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

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.XBeeStringParamCmd
              extended by edu.uiuc.cs.seclab.modem.xbee.cmd.XBeeLongVerCmd
All Implemented Interfaces:
java.lang.Cloneable

public class XBeeLongVerCmd
extends XBeeStringParamCmd


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
XBeeAtCmd.Mode
 
Field Summary
static java.lang.String CMD
           
protected  java.lang.String longVer
           
 
Constructor Summary
XBeeLongVerCmd()
           
 
Method Summary
 int getApiParamLength()
          Determine the maximum size of the parameter in bytes.
 java.lang.String getAtCmd()
          Get the two-character AT code associated with this command.
 java.lang.String getLongVer()
           
protected  java.lang.String getSetterVal()
           
 java.lang.String getShortDesc()
          Return a short (one-line) description for command suitable for display in parameter table.
 boolean isReadOnly()
          Return false if parameter can be changed
 void localSetVal(java.lang.String val)
           
 java.lang.Object unmarshalRespParams(java.lang.String params)
          All commands of this type accept a single argument, representing the register value before the command was received, in a successful response.
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeStringParamCmd
getRawSetterParams, marshalApiSetterParams, marshalPtSetterParams, setVal, unmarshalApiGetterParams, unmarshalPtGetterParams
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
clone, convertApiResponse, getApiParams, parmEq
 
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

CMD

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

longVer

protected java.lang.String longVer
Constructor Detail

XBeeLongVerCmd

public XBeeLongVerCmd()
Method Detail

getApiParamLength

public int getApiParamLength()
                      throws ModemException
Description copied from class: XBeeParamCmd
Determine the maximum size of the parameter in bytes. This could correspond to the size of a datatype for numeric parameters, or the maximum length of a string for a string parameter.

Specified by:
getApiParamLength in class XBeeParamCmd
Returns:
Throws:
ModemException

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

getLongVer

public java.lang.String getLongVer()

getSetterVal

protected java.lang.String getSetterVal()
Specified by:
getSetterVal in class XBeeStringParamCmd

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

isReadOnly

public boolean isReadOnly()
Description copied from class: XBeeParamCmd
Return false if parameter can be changed

Overrides:
isReadOnly in class XBeeParamCmd

localSetVal

public void localSetVal(java.lang.String val)
                 throws ModemException
Specified by:
localSetVal in class XBeeStringParamCmd
Throws:
ModemException

unmarshalRespParams

public java.lang.Object unmarshalRespParams(java.lang.String params)
                                     throws ModemException
Description copied from class: XBeeParamCmd
All commands of this type accept a single argument, representing the register value before the command was received, in a successful response. Unmarshal that register value and return it.

Overrides:
unmarshalRespParams in class XBeeParamCmd
Throws:
ModemException