edu.uiuc.cs.seclab.modem.xbee.cmd
Class XBeeLongVerCmd
java.lang.Object
edu.uiuc.cs.seclab.modem.xbee.XBeeAtCmd
edu.uiuc.cs.seclab.modem.xbee.XBeeParamCmd
edu.uiuc.cs.seclab.modem.xbee.XBeeStringParamCmd
edu.uiuc.cs.seclab.modem.xbee.cmd.XBeeLongVerCmd
- All Implemented Interfaces:
- java.lang.Cloneable
public class XBeeLongVerCmd
- extends XBeeStringParamCmd
|
Field Summary |
static java.lang.String |
CMD
|
protected java.lang.String |
longVer
|
|
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CMD
public static final java.lang.String CMD
- See Also:
- Constant Field Values
longVer
protected java.lang.String longVer
XBeeLongVerCmd
public XBeeLongVerCmd()
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