MultiNodeStatistics Class Reference
[pydtn]

Subclass of Statistics that can aggregate statistics for multiple DTN::Nodes. More...

#include <pydtn/MultiNodeStatistics.h>

Inheritance diagram for MultiNodeStatistics:

Inheritance graph
[legend]
Collaboration diagram for MultiNodeStatistics:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MultiNodeStatistics ()
 Default constructor.
virtual unsigned long int used () const
 
Returns:
the number of bytes of stable storage used at this instant

virtual unsigned long int capacity () const
 
Returns:
the capacity (in bytes) of stable storage at this instant

virtual double maxUsed () const
 
Returns:
the largest fractional capacity used of traced DTN::Nodes

void persistentStore (const DTN::Bundle &b)
 Recording method for adding a DTN::Bundle to the persistent store.
void addNode (DTN::Node *n)
 
Parameters:
n A DTN::Node to add to the internal list


Detailed Description

Subclass of Statistics that can aggregate statistics for multiple DTN::Nodes.

Definition at line 44 of file MultiNodeStatistics.h.


Member Function Documentation

void MultiNodeStatistics::persistentStore ( const DTN::Bundle b  )  [virtual]

Recording method for adding a DTN::Bundle to the persistent store.

Parameters:
b A bundle being stored

Reimplemented from Statistics.

Definition at line 98 of file MultiNodeStatistics.cc.

References Statistics::m_since, Statistics::m_total, StatCollection::setExhausted(), and used().


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