SunSPOT API V3.0


com.sun.spot.peripheral.radio
Class LowPanStats

java.lang.Object
  extended by com.sun.spot.peripheral.radio.LowPanStats

public class LowPanStats
extends Object

Author:
Pete St. Pierre

Field Summary
protected  int broadcastsFragmented
          number of mesh broadcasts that required fragmentation (we don't fragment local broadcasts)
protected  int broadcastsQueueFull
          number of packets intentionally dropped because we sent them
protected  int broadcastsReceived
          broadcasts received
protected  int broadcastsSent
          number of broadcasts sent
protected  int datagramsReassembled
          number of packets reassembled
protected  int droppedBroadcasts
          number of packets intentionally dropped because they didn't meet broadcast seqNo requirements
protected  int fragmentsReceived
          number of packet fragments we received
protected  int meshBroadcastsForwarded
          number of broadcast packets forwarded
protected  int meshBroadcastsReceived
          broadcasts received
protected  int meshBroadcastsSent
          number of mesh broadcasts sent
protected  int meshPacketsReceived
          total mesh packets received
protected  int meshPacketsSent
          mesh packets sent
protected  int nonMeshPacketsReceived
          packets received without a mesh routing header (single hop);
protected  int nonMeshPacketsSent
          non-mesh packets sent
protected  int packetsForwarded
          number of packets forwarded through this node
protected  int packetsSent
          number of packets sent
protected  int protocolCount
          number of SPOT protocol handlers registered
protected  int protocolFamilyCount
          number of non-SPOT protocol family handlers registered
protected  int protocolHandlerMissing
          number of times we looked for a protocol handler, but failed
protected  int reassemblyExpired
          number of packets we couldn't reassemble
protected  int ttlExpired
          number of packets intentionally dropped because TTL expired
protected  int unicastsFragmented
          number of datagrams that required fragmentation
protected  int unicastsReceived
          full datagrams received
protected  int unicastsSent
          Number of datagrams sent
 
Constructor Summary
LowPanStats()
          Creates a new instance of LowPanStats
LowPanStats(byte[] b)
          Creates a new instance of LowPanStats
 
Method Summary
 LowPanStats clone()
           
 int getBroadcastsForwarded()
           
 int getBroadcastsFragmented()
           
 int getBroadcastsReceived()
           
 int getBroadcastsSent()
           
 int getDatagramsReassembled()
           
 int getDroppedBroadcasts()
           
 int getDroppedOwnBroadcasts()
           
 int getFragmentsReceived()
           
 int getMeshPacketsReceived()
           
 int getMeshPacketsSent()
           
 int getNonMeshPacketsReceived()
           
 int getNonMeshPacketsSent()
           
 int getPacketsForwarded()
           
 int getPacketsSent()
           
 int getProtocolCount()
           
 int getProtocolFamilyCount()
           
 int getProtocolHandlerMissing()
           
 int getReassemblyExpired()
           
 int getTTLExpired()
           
 int getUnicastsFragmented()
           
 int getUnicastsReceived()
           
 int getUnicastsSent()
           
 byte[] toByteArray()
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

protocolCount

protected int protocolCount
number of SPOT protocol handlers registered


protocolFamilyCount

protected int protocolFamilyCount
number of non-SPOT protocol family handlers registered


protocolHandlerMissing

protected int protocolHandlerMissing
number of times we looked for a protocol handler, but failed


unicastsSent

protected int unicastsSent
Number of datagrams sent


unicastsFragmented

protected int unicastsFragmented
number of datagrams that required fragmentation


nonMeshPacketsSent

protected int nonMeshPacketsSent
non-mesh packets sent


meshPacketsSent

protected int meshPacketsSent
mesh packets sent


packetsSent

protected int packetsSent
number of packets sent


broadcastsSent

protected int broadcastsSent
number of broadcasts sent


broadcastsReceived

protected int broadcastsReceived
broadcasts received


meshBroadcastsSent

protected int meshBroadcastsSent
number of mesh broadcasts sent


meshBroadcastsReceived

protected int meshBroadcastsReceived
broadcasts received


broadcastsFragmented

protected int broadcastsFragmented
number of mesh broadcasts that required fragmentation (we don't fragment local broadcasts)


packetsForwarded

protected int packetsForwarded
number of packets forwarded through this node


meshBroadcastsForwarded

protected int meshBroadcastsForwarded
number of broadcast packets forwarded


ttlExpired

protected int ttlExpired
number of packets intentionally dropped because TTL expired


droppedBroadcasts

protected int droppedBroadcasts
number of packets intentionally dropped because they didn't meet broadcast seqNo requirements


broadcastsQueueFull

protected int broadcastsQueueFull
number of packets intentionally dropped because we sent them


meshPacketsReceived

protected int meshPacketsReceived
total mesh packets received


nonMeshPacketsReceived

protected int nonMeshPacketsReceived
packets received without a mesh routing header (single hop);


datagramsReassembled

protected int datagramsReassembled
number of packets reassembled


reassemblyExpired

protected int reassemblyExpired
number of packets we couldn't reassemble


fragmentsReceived

protected int fragmentsReceived
number of packet fragments we received


unicastsReceived

protected int unicastsReceived
full datagrams received

Constructor Detail

LowPanStats

public LowPanStats()
Creates a new instance of LowPanStats


LowPanStats

public LowPanStats(byte[] b)
Creates a new instance of LowPanStats

Method Detail

getUnicastsSent

public int getUnicastsSent()

getUnicastsFragmented

public int getUnicastsFragmented()

getUnicastsReceived

public int getUnicastsReceived()

getBroadcastsSent

public int getBroadcastsSent()

getBroadcastsFragmented

public int getBroadcastsFragmented()

getBroadcastsReceived

public int getBroadcastsReceived()

getPacketsSent

public int getPacketsSent()

getPacketsForwarded

public int getPacketsForwarded()

getBroadcastsForwarded

public int getBroadcastsForwarded()

getMeshPacketsReceived

public int getMeshPacketsReceived()

getMeshPacketsSent

public int getMeshPacketsSent()

getNonMeshPacketsReceived

public int getNonMeshPacketsReceived()

getNonMeshPacketsSent

public int getNonMeshPacketsSent()

getReassemblyExpired

public int getReassemblyExpired()

getTTLExpired

public int getTTLExpired()

getDatagramsReassembled

public int getDatagramsReassembled()

getFragmentsReceived

public int getFragmentsReceived()

getProtocolCount

public int getProtocolCount()

getProtocolFamilyCount

public int getProtocolFamilyCount()

getProtocolHandlerMissing

public int getProtocolHandlerMissing()

getDroppedBroadcasts

public int getDroppedBroadcasts()

getDroppedOwnBroadcasts

public int getDroppedOwnBroadcasts()

clone

public LowPanStats clone()

toByteArray

public byte[] toByteArray()

toString

public String toString()
Description copied from class: Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class Object
Returns:
a string representation of the object.

SunSPOT API V3.0


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