StoreProfile::BundleCollector Class Reference
[pydtn.storeprofile]

Class that collects storage information from a WrapNode. More...

#include <storeprofile/BundleCollector.h>

Inheritance diagram for StoreProfile::BundleCollector:

Inheritance graph
[legend]
Collaboration diagram for StoreProfile::BundleCollector:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BundleCollector (std::ostream &s)
 Constructor.
virtual ~BundleCollector ()
 Virtual destructor.
void operator() (const WrapNode &wn) const
 Functional method.


Detailed Description

Class that collects storage information from a WrapNode.

Definition at line 46 of file BundleCollector.h.


Constructor & Destructor Documentation

BundleCollector::BundleCollector ( std::ostream &  s  ) 

Constructor.

Parameters:
s The stream on which to write output

Definition at line 39 of file BundleCollector.cc.


Member Function Documentation

void BundleCollector::operator() ( const WrapNode wn  )  const [virtual]

Functional method.

Note that this should never touch data not directly owned by the WrapNode or its internal DTN::Node. Since this method might be called while the simulator is exiting, any other object might cease to exist.

Parameters:
wn A WrapNode on which to act

Implements NodeCollector.

Definition at line 49 of file BundleCollector.cc.

References Stat::add(), WrapNode::addrString(), WrapNode::cachedPersistent(), WrapNode::cachedVolatile(), DTN::BundlePointer::isNull(), DTN::Bundle::kACK, Stat::n(), DTN::BundlePointer::next(), DTN::BundlePointer::repr(), Stat::s(), DTN::Bundle::size(), and DTN::Bundle::type().


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