#include <ProphetLists.h>
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 | |
ProphetStatsEntry * | find_entry (const Bundle *) |
Protected Attributes | |
u_int | dropped_ |
pstats | pstats_ |
oasys::SpinLock * | lock_ |
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.
dtn::ProphetStats::ProphetStats | ( | ) | [inline] |
dtn::ProphetStats::~ProphetStats | ( | ) |
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_.
Referenced by dtn::FwdDeciderGTMXPLUS::operator()(), and dtn::FwdDeciderGRTRPLUS::operator()().
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] |
ProphetStatsEntry * dtn::ProphetStats::find_entry | ( | const Bundle * | ) | [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().
u_int dtn::ProphetStats::dropped_ [protected] |
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().