StatCollection Class Reference
[pydtn]

A collection of Stats. More...

#include <pydtn/Statistics.h>

Collaboration diagram for StatCollection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatCollection ()
 Constructor.
const UniqueStatoriginated () const
 
Returns:
statistics for DTN::Bundles created

const Statsent () const
 
Returns:
statistics for DTN::Bundles sent by a DTN::Node

const Statreceived () const
 
Returns:
statistics for DTN::Bundles received by a DTN::Node

const UniqueStatdelivered () const
 
Returns:
statistics for DTN::Bundles delivered successfully

const StatdeliverHops () const
 
Returns:
hop-count statistics for DTN::Bundles delivered

const Statdropped () const
 
Returns:
statistics for DTN::Bundles dropped by the network

const StatdropHops () const
 
Returns:
hop-count statistics for dropped DTN::Bundles

bool exhausted () const
 
Returns:
whether the stable storage has been exhausted

void addOriginated (const DTN::Bundle &b)
 
Parameters:
b A DTN::Bundle created

void addSent (unsigned long int val)
 
Parameters:
val Size of an outgoing DTN::Bundle

void addReceived (unsigned long int val)
 
Parameters:
val Size of an incoming DTN::Bundle

void addDelivered (const DTN::Bundle &b)
 
Parameters:
b A delivered DTN::Bundle

void addDropped (const DTN::Bundle &b)
 
Parameters:
b A dropped DTN::Bundle

void setExhausted ()
 Sets the exhausted flag to true.
void reset ()
 Reset all accumulators.


Detailed Description

A collection of Stats.

Definition at line 108 of file Statistics.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:47 2008 for Pydtn Simulator by  doxygen 1.5.4