GlobalStatistics Class Reference
[pydtn]

Singleton subclass of MultiNodeStatistics. More...

#include <pydtn/GlobalStatistics.h>

Inheritance diagram for GlobalStatistics:

Inheritance graph
[legend]
Collaboration diagram for GlobalStatistics:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void enable ()
 Create an instance of the global statistical aggregator.
static GlobalStatisticsinstance ()
 
Returns:
the current instance (might by NULL if not yet enabled)


Detailed Description

Singleton subclass of MultiNodeStatistics.

The instance() method indicates if there is global statistical accumulation. This is in contrast to most singleton classes, where instance() would create a new object. Instead, we use an explicit enable() method to bring the singleton instance into existence. This allows us to have or not have a GlobalStatistics aggregator, depending on run-time configuration.

Definition at line 48 of file GlobalStatistics.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