com.rapplogic.xbee.api.zigbee
Class ZNetExplicitRxResponse

java.lang.Object
  extended by com.rapplogic.xbee.api.XBeeResponse
      extended by com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
          extended by com.rapplogic.xbee.api.zigbee.ZNetRxResponse
              extended by com.rapplogic.xbee.api.zigbee.ZNetExplicitRxResponse
All Implemented Interfaces:
NoRequestResponse, java.io.Serializable

public class ZNetExplicitRxResponse
extends ZNetRxResponse

Series 2 XBee. This packet is received when a remote XBee sends a ZNetExplicitTxRequest

Radio must be configured for explicit frames to use this class (AO=1)

API ID: 0x91

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
ZNetRxBaseResponse.Option
 
Constructor Summary
ZNetExplicitRxResponse()
           
 
Method Summary
 DoubleByte getClusterId()
           
 int getDestinationEndpoint()
           
 DoubleByte getProfileId()
           
 int getSourceEndpoint()
           
 void parse(IPacketParser parser)
          All subclasses must implement to parse the packet from the input stream.
 void setClusterId(DoubleByte clusterId)
           
 void setDestinationEndpoint(int destinationEndpoint)
           
 void setProfileId(DoubleByte profileId)
           
 void setSourceEndpoint(int sourceEndpoint)
           
 java.lang.String toString()
           
 
Methods inherited from class com.rapplogic.xbee.api.zigbee.ZNetRxResponse
getData, setData
 
Methods inherited from class com.rapplogic.xbee.api.zigbee.ZNetRxBaseResponse
getOption, getRemoteAddress16, getRemoteAddress64, parseAddress, parseOption, setOption, setRemoteAddress16, setRemoteAddress64
 
Methods inherited from class com.rapplogic.xbee.api.XBeeResponse
equals, finish, getApiId, getChecksum, getLength, getPacketBytes, getProcessedPacketBytes, getRawPacketBytes, hashCode, isError, setApiId, setChecksum, setError, setLength, setRawPacketBytes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZNetExplicitRxResponse

public ZNetExplicitRxResponse()
Method Detail

getSourceEndpoint

public int getSourceEndpoint()

setSourceEndpoint

public void setSourceEndpoint(int sourceEndpoint)

getDestinationEndpoint

public int getDestinationEndpoint()

setDestinationEndpoint

public void setDestinationEndpoint(int destinationEndpoint)

getClusterId

public DoubleByte getClusterId()

setClusterId

public void setClusterId(DoubleByte clusterId)

getProfileId

public DoubleByte getProfileId()

setProfileId

public void setProfileId(DoubleByte profileId)

parse

public void parse(IPacketParser parser)
           throws java.io.IOException
Description copied from class: XBeeResponse
All subclasses must implement to parse the packet from the input stream. The subclass must parse all bytes in the packet starting after the API_ID, and up to but not including the checksum. Reading either more or less bytes that expected will result in an error.

Overrides:
parse in class ZNetRxResponse
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class ZNetRxResponse