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

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

public class XBeeEndDevAssocCmd
extends XBeeByteParamCmd

ATA1 - End device 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 ASSOC_ON_ANY_CH
          Associate with a coordinator on any channel.
static byte ASSOC_WITH_ANY_PAN_COORD
          Associate with a coordinator on any PAN.
static byte AUTO_ASSOC
          Attempt to associate until successful
static java.lang.String CMD
           
protected  byte options
           
static byte POLL_COORD_ON_WAKE
          Poll coordinator for pending data upon wakeup
 
Fields inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeNumParamCmd
HEX_CHARS_PER_BYTE, PT_RADIX
 
Constructor Summary
XBeeEndDevAssocCmd()
           
XBeeEndDevAssocCmd(boolean anyPan, boolean anyCh, boolean auto, boolean pollOnWake)
           
 
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.
 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 isAnyCh()
           
 boolean isAnyPan()
           
 boolean isAutoRety()
           
protected  boolean isOpt(byte mask)
           
 boolean isPollOnWake()
           
 void localSetVal(byte b)
           
 
Methods inherited from class edu.uiuc.cs.seclab.modem.xbee.XBeeByteParamCmd
getApiParamLength, getMaxVal, 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

ASSOC_ON_ANY_CH

public static final byte ASSOC_ON_ANY_CH
Associate with a coordinator on any channel. Otherwise, remain on current channel.

See Also:
Constant Field Values

ASSOC_WITH_ANY_PAN_COORD

public static final byte ASSOC_WITH_ANY_PAN_COORD
Associate with a coordinator on any PAN. Otherwise, only associate with coordinators on PANs matching node ID.

See Also:
Constant Field Values

AUTO_ASSOC

public static final byte AUTO_ASSOC
Attempt to associate until successful

See Also:
Constant Field Values

CMD

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

options

protected byte options

POLL_COORD_ON_WAKE

public static final byte POLL_COORD_ON_WAKE
Poll coordinator for pending data upon wakeup

See Also:
Constant Field Values
Constructor Detail

XBeeEndDevAssocCmd

public XBeeEndDevAssocCmd()

XBeeEndDevAssocCmd

public XBeeEndDevAssocCmd(boolean anyPan,
                          boolean anyCh,
                          boolean auto,
                          boolean pollOnWake)
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

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

isAnyCh

public boolean isAnyCh()

isAnyPan

public boolean isAnyPan()

isAutoRety

public boolean isAutoRety()

isOpt

protected boolean isOpt(byte mask)

isPollOnWake

public boolean isPollOnWake()

localSetVal

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