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

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.XBeeByteParamCmd
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
XBee2AggregateRoutingIntervalCmd, XBee2ApiOptionsCmd, XBee2EndpointCmd, XBee2JoinNotificationCmd, XBee2JoinTimeCmd, XBee2NetResetCmd, XBee2PacketizationTimeoutCmd, XBee2SleepPeriodCntCmd, XBeeAdcVRefCmd, XBeeApiCmd, XBeeBoolParamCmd, XBeeCcaCmd, XBeeChCmd, XBeeCoordAssocCmd, XBeeCoordEnableCmd, XBeeDioCmd, XBeeEndDevAssocCmd, XBeeIntfDataRateCmd, XBeeMacModeCmd, XBeeNodeDiscTimeCmd, XBeePacketizationTimeoutCmd, XBeePwrLvlCmd, XBeeRetriesCmd, XBeeRndDelayCmd, XBeeRxSigStrengthCmd, XBeeScanDurationCmd, XBeeSeqCharCmd, XBeeSleepModeCmd

public abstract class XBeeByteParamCmd
extends XBeeNumParamCmd


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
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
HEX_CHARS_PER_BYTE, PT_RADIX
 
Constructor Summary
XBeeByteParamCmd()
           
 
Method Summary
 int getApiParamLength()
          Determine the maximum size of the parameter in bytes.
 int getMaxVal()
          Return the maximum value supported by parameter
 int getMinVal()
          Return the minimum value supported by parameter
 java.lang.Object getRawSetterParams()
          Return a semantic (non-string) setter parameter representation.
protected abstract  byte getSetterVal()
           
abstract  void localSetVal(byte b)
           
 void localSetVal(int i)
           
 java.lang.String marshalApiSetterParams()
          Convert byte into API line formatting
 java.lang.String marshalPtSetterParams()
          Convert byte into pass-thru line formatting
 java.lang.Object unmarshalApiGetterParams(java.lang.String data)
          Convert API line-formatted string to byte
 java.lang.Object unmarshalPtGetterParams(java.lang.String data)
          Convert pass-thru line-formatted string to byte
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
getDefVal, getRepresentation, 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
getAtCmd, getPktImpl, getShortDesc, processResp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBeeByteParamCmd

public XBeeByteParamCmd()
Method Detail

getApiParamLength

public int getApiParamLength()
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:

getMaxVal

public int getMaxVal()
Description copied from class: XBeeNumParamCmd
Return the maximum value supported by parameter

Specified by:
getMaxVal in class XBeeNumParamCmd

getMinVal

public int getMinVal()
Description copied from class: XBeeNumParamCmd
Return the minimum value supported by parameter

Specified by:
getMinVal in class XBeeNumParamCmd

getRawSetterParams

public java.lang.Object getRawSetterParams()
Description copied from class: XBeeParamCmd
Return a semantic (non-string) setter parameter representation. For example, return an Integer object.

Specified by:
getRawSetterParams in class XBeeParamCmd

getSetterVal

protected abstract byte getSetterVal()

localSetVal

public abstract void localSetVal(byte b)
                          throws ModemException
Throws:
ModemException

localSetVal

public final void localSetVal(int i)
                       throws ModemException
Specified by:
localSetVal in class XBeeNumParamCmd
Throws:
ModemException

marshalApiSetterParams

public java.lang.String marshalApiSetterParams()
Convert byte into API line formatting

Specified by:
marshalApiSetterParams in class XBeeParamCmd
Returns:

marshalPtSetterParams

public java.lang.String marshalPtSetterParams()
Convert byte into pass-thru line formatting

Specified by:
marshalPtSetterParams in class XBeeParamCmd
Parameters:
b -
Returns:

unmarshalApiGetterParams

public java.lang.Object unmarshalApiGetterParams(java.lang.String data)
Convert API line-formatted string to byte

Specified by:
unmarshalApiGetterParams in class XBeeParamCmd
Parameters:
b -
Returns:

unmarshalPtGetterParams

public java.lang.Object unmarshalPtGetterParams(java.lang.String data)
Convert pass-thru line-formatted string to byte

Specified by:
unmarshalPtGetterParams in class XBeeParamCmd
Parameters:
b -
Returns: