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

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.cmd.XBeeCoordAssocCmd
All Implemented Interfaces:
java.lang.Cloneable

public class XBeeCoordAssocCmd
extends XBeeByteParamCmd

ATA2 - Coordinator association command


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
static byte ALLOW_ASSOC
          Allow devices to associate with coordinator
static java.lang.String CMD
           
static byte DISCOVER_AVAIL_CH
          Scan for available channel
static byte DISCOVER_AVAIL_PAN_ID
          Scan for available PAN ID
protected  byte options
           
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
HEX_CHARS_PER_BYTE, PT_RADIX
 
Constructor Summary
XBeeCoordAssocCmd()
           
 
Method Summary
protected  java.lang.String getApiParams()
          Implement abstract method by simply invoking the API conversion.
 java.lang.String getAtCmd()
          Get the two-character AT code associated with this command.
 int getMaxVal()
          Return the maximum value supported by parameter
 XBeeNumParamCmd.Representation getRepresentation()
           
protected  byte getSetterVal()
           
 java.lang.String getShortDesc()
          Return a short (one-line) description for command suitable for display in parameter table.
 boolean isAllowAssoc()
           
 boolean isDiscAvailCh()
           
 boolean isDiscAvailPanId()
           
protected  boolean isOpt(byte mask)
           
 void localSetVal(byte b)
           
 void setOptions(boolean discPan, boolean discCh, boolean allowAssoc)
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeByteParamCmd
getApiParamLength, getMinVal, getRawSetterParams, localSetVal, marshalApiSetterParams, marshalPtSetterParams, unmarshalApiGetterParams, unmarshalPtGetterParams
 
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, 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

ALLOW_ASSOC

public static final byte ALLOW_ASSOC
Allow devices to associate with coordinator

See Also:
Constant Field Values

CMD

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

DISCOVER_AVAIL_CH

public static final byte DISCOVER_AVAIL_CH
Scan for available channel

See Also:
Constant Field Values

DISCOVER_AVAIL_PAN_ID

public static final byte DISCOVER_AVAIL_PAN_ID
Scan for available PAN ID

See Also:
Constant Field Values

options

protected byte options
Constructor Detail

XBeeCoordAssocCmd

public XBeeCoordAssocCmd()
Method Detail

getApiParams

protected java.lang.String getApiParams()
Description copied from class: XBeeParamCmd
Implement abstract method by simply invoking the API conversion.

Overrides:
getApiParams in class XBeeParamCmd

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

getMaxVal

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

Overrides:
getMaxVal in class XBeeByteParamCmd

getRepresentation

public XBeeNumParamCmd.Representation getRepresentation()
Overrides:
getRepresentation in class XBeeNumParamCmd

getSetterVal

protected byte getSetterVal()
Specified by:
getSetterVal in class XBeeByteParamCmd

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

isAllowAssoc

public boolean isAllowAssoc()

isDiscAvailCh

public boolean isDiscAvailCh()

isDiscAvailPanId

public boolean isDiscAvailPanId()

isOpt

protected boolean isOpt(byte mask)

localSetVal

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

setOptions

public void setOptions(boolean discPan,
                       boolean discCh,
                       boolean allowAssoc)