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

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
                  extended by edu.uiuc.cs.seclab.modem.xbee.XBeeBoolParamCmd
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
XBee2PwrModeCmd, XBeeEncEnableCmd

public abstract class XBeeBoolParamCmd
extends XBeeByteParamCmd

Many byte parameters actually represent boolean values.


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
XBeeBoolParamCmd()
           
 
Method Summary
 int getMaxVal()
          Return the maximum value supported by parameter
 int getMinVal()
          Return the minimum value supported by parameter
protected abstract  void localSetVal(boolean bool)
           
 void localSetVal(byte b)
           
 void setBool(boolean val)
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeByteParamCmd
getApiParamLength, getRawSetterParams, getSetterVal, localSetVal, marshalApiSetterParams, marshalPtSetterParams, unmarshalApiGetterParams, unmarshalPtGetterParams
 
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

XBeeBoolParamCmd

public XBeeBoolParamCmd()
Method Detail

getMaxVal

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

Overrides:
getMaxVal in class XBeeByteParamCmd

getMinVal

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

Overrides:
getMinVal in class XBeeByteParamCmd

localSetVal

protected abstract void localSetVal(boolean bool)

localSetVal

public final void localSetVal(byte b)
                       throws ModemException
Specified by:
localSetVal in class XBeeByteParamCmd
Throws:
ModemException

setBool

public void setBool(boolean val)