dtn::ProphetStats Class Reference

#include <ProphetLists.h>

List of all members.


Detailed Description

Definition at line 671 of file ProphetLists.h.


Public Member Functions

 ProphetStats ()
 ~ProphetStats ()
void update_stats (const Bundle *b, double p)
double get_p_max (const Bundle *b)
double get_mopr (const Bundle *b)
double get_lmopr (const Bundle *b)
void drop_bundle (const Bundle *b)
u_int dropped ()

Protected Types

typedef std::map
< u_int32_t,
ProphetStatsEntry * > 
pstats
typedef std::map
< u_int32_t,
ProphetStatsEntry * >
::iterator 
iterator
typedef std::map
< u_int32_t,
ProphetStatsEntry * >
::const_iterator 
const_iterator

Protected Member Functions

ProphetStatsEntryfind_entry (const Bundle *)

Protected Attributes

u_int dropped_
pstats pstats_
oasys::SpinLocklock_

Member Typedef Documentation

typedef std::map<u_int32_t,ProphetStatsEntry*> dtn::ProphetStats::pstats [protected]

Definition at line 689 of file ProphetLists.h.

typedef std::map<u_int32_t,ProphetStatsEntry*>::iterator dtn::ProphetStats::iterator [protected]

Definition at line 690 of file ProphetLists.h.

typedef std::map<u_int32_t,ProphetStatsEntry*>::const_iterator dtn::ProphetStats::const_iterator [protected]

Definition at line 692 of file ProphetLists.h.


Constructor & Destructor Documentation

dtn::ProphetStats::ProphetStats (  )  [inline]

Definition at line 673 of file ProphetLists.h.

References pstats_.

dtn::ProphetStats::~ProphetStats (  ) 

Definition at line 565 of file ProphetLists.cc.

References ExamineDump::l, lock_, and pstats_.


Member Function Documentation

void dtn::ProphetStats::update_stats ( const Bundle b,
double  p 
)

Definition at line 600 of file ProphetLists.cc.

References ASSERT, dtn::Bundle::bundleid_, find_entry(), ExamineDump::l, dtn::ProphetStatsEntry::lmopr_, lock_, dtn::ProphetStatsEntry::mopr_, dtn::ProphetStatsEntry::p_max_, and pstats_.

Referenced by dtn::ProphetEncounter::fwd_to_nexthop().

double dtn::ProphetStats::get_p_max ( const Bundle b  ) 

Definition at line 621 of file ProphetLists.cc.

References find_entry(), ExamineDump::l, lock_, and dtn::ProphetStatsEntry::p_max_.

double dtn::ProphetStats::get_mopr ( const Bundle b  ) 

Definition at line 629 of file ProphetLists.cc.

References find_entry(), ExamineDump::l, lock_, and dtn::ProphetStatsEntry::mopr_.

double dtn::ProphetStats::get_lmopr ( const Bundle b  ) 

Definition at line 637 of file ProphetLists.cc.

References find_entry(), ExamineDump::l, dtn::ProphetStatsEntry::lmopr_, and lock_.

void dtn::ProphetStats::drop_bundle ( const Bundle b  ) 

Definition at line 645 of file ProphetLists.cc.

References dtn::Bundle::bundleid_, dropped_, ExamineDump::l, lock_, and pstats_.

Referenced by dtn::ProphetController::handle_bundle_expired().

u_int dtn::ProphetStats::dropped (  )  [inline]

Definition at line 686 of file ProphetLists.h.

References dropped_.

ProphetStatsEntry * dtn::ProphetStats::find_entry ( const Bundle b  )  [protected]

Definition at line 583 of file ProphetLists.cc.

References ASSERT, dtn::Bundle::bundleid_, oasys::Lock::is_locked_by_me(), lock_, and pstats_.

Referenced by get_lmopr(), get_mopr(), get_p_max(), and update_stats().


Member Data Documentation

u_int dtn::ProphetStats::dropped_ [protected]

Definition at line 696 of file ProphetLists.h.

Referenced by drop_bundle(), and dropped().

pstats dtn::ProphetStats::pstats_ [protected]

Definition at line 697 of file ProphetLists.h.

Referenced by drop_bundle(), find_entry(), ProphetStats(), update_stats(), and ~ProphetStats().

oasys::SpinLock* dtn::ProphetStats::lock_ [protected]

Definition at line 698 of file ProphetLists.h.

Referenced by drop_bundle(), find_entry(), get_lmopr(), get_mopr(), get_p_max(), update_stats(), and ~ProphetStats().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:22 2007 for DTN Reference Implementation by  doxygen 1.5.3