SunSPOT API V5.0


com.sun.spot.peripheral.radio
Class HeaderInfoBase

java.lang.Object
  extended by com.sun.spot.peripheral.radio.HeaderInfoBase
Direct Known Subclasses:
LowPanHeaderInfo

public class HeaderInfoBase
extends Object

HeaderInfoBase.java This class is to be extended according to the used mac layer. See for example the LowPanHeaderInfo. This class and also extending classes provide access to information that is stored in headers that are not existing any more after the decapsulation process that takes place in the low pan layer.

Author:
Jochen Furthmueller

Field Summary
 long destinationAddress
           
 long sourceAddress
           
 
Constructor Summary
HeaderInfoBase(long dest, long src)
          creates a new instance of the class HeaderInfoBase
 
Method Summary
 String getProperty(String key)
          Gives access to properties of headers that have been stripped away during processing of the packet.
 void setDestinationAddress(long addr)
          Set the destination address of this header info.
 void setSourceAddress(long addr)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destinationAddress

public long destinationAddress

sourceAddress

public long sourceAddress
Constructor Detail

HeaderInfoBase

public HeaderInfoBase(long dest,
                      long src)
creates a new instance of the class HeaderInfoBase

Method Detail

setDestinationAddress

public void setDestinationAddress(long addr)
Set the destination address of this header info. This is used for spotgrams that are supposed to be sent on a server connection.


setSourceAddress

public void setSourceAddress(long addr)

getProperty

public String getProperty(String key)
Gives access to properties of headers that have been stripped away during processing of the packet. This method should be overwritten by extending classes, according to their header fields.

Returns:
property string representation of the property that was asked for

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.