SunSPOT API V3.0


com.sun.spot.peripheral.radio
Class LowPanHeaderInfo

java.lang.Object
  extended by com.sun.spot.peripheral.radio.HeaderInfoBase
      extended by com.sun.spot.peripheral.radio.LowPanHeaderInfo

public class LowPanHeaderInfo
extends HeaderInfoBase

LowPanHeaderInfo.java This class provides 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
 int corr
           
 int linkQuality
           
 long originator
           
 int rssi
           
 long timestamp
           
 
Fields inherited from class com.sun.spot.peripheral.radio.HeaderInfoBase
destinationAddress, sourceAddress
 
Constructor Summary
LowPanHeaderInfo(long destinationAddress, long sourceAddress, int rssi, int corr, int linkQuality, int destinationPanID, int sourcePanID, boolean fragmented, long originator, long finalDestination, byte hopCount, long timestamp)
          Creates a new instance of LowPanHeaderInfo
 
Method Summary
 String getProperty(String key)
          Gives access to properties of headers that have been stripped away during processing of the packet.
 
Methods inherited from class com.sun.spot.peripheral.radio.HeaderInfoBase
setDestinationAddress, setSourceAddress
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rssi

public int rssi

corr

public int corr

linkQuality

public int linkQuality

originator

public long originator

timestamp

public long timestamp
Constructor Detail

LowPanHeaderInfo

public LowPanHeaderInfo(long destinationAddress,
                        long sourceAddress,
                        int rssi,
                        int corr,
                        int linkQuality,
                        int destinationPanID,
                        int sourcePanID,
                        boolean fragmented,
                        long originator,
                        long finalDestination,
                        byte hopCount,
                        long timestamp)
Creates a new instance of LowPanHeaderInfo

Method Detail

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.

Overrides:
getProperty in class HeaderInfoBase
Returns:
property string representation of the property that was asked for

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.