Forward the bundle only if P(B,D) > P(A,D) && P(B,D) > P_max && NF < NF_max which is a combination of GTMX and GRTR_PLUS. More...
#include <Decider.h>
Public Member Functions | |
| virtual | ~FwdDeciderGTMXPLUS () |
| Destructor. | |
| bool | operator() (const Bundle *) const |
| Virtual from Decider. | |
| u_int | max_forward () const |
| Accessors. | |
Protected Member Functions | |
| FwdDeciderGTMXPLUS (FwdStrategy::fwd_strategy_t fs, const Link *nexthop, BundleCore *core, const Table *local, const Table *remote, const Stats *stats, u_int max_forward, bool relay) | |
| Constructor. | |
Protected Attributes | |
| u_int | max_fwd_ |
| local configuration setting for NF_max | |
Friends | |
| class | Decider |
Forward the bundle only if P(B,D) > P(A,D) && P(B,D) > P_max && NF < NF_max which is a combination of GTMX and GRTR_PLUS.
Definition at line 193 of file Decider.h.
| virtual prophet::FwdDeciderGTMXPLUS::~FwdDeciderGTMXPLUS | ( | ) | [inline, virtual] |
| prophet::FwdDeciderGTMXPLUS::FwdDeciderGTMXPLUS | ( | FwdStrategy::fwd_strategy_t | fs, | |
| const Link * | nexthop, | |||
| BundleCore * | core, | |||
| const Table * | local, | |||
| const Table * | remote, | |||
| const Stats * | stats, | |||
| u_int | max_forward, | |||
| bool | relay | |||
| ) | [protected] |
Constructor.
Protected to force entry via factory method.
Definition at line 156 of file Decider.cc.
| u_int prophet::FwdDeciderGTMXPLUS::max_forward | ( | ) | const [inline] |
Virtual from Decider.
Reimplemented from prophet::FwdDeciderGRTRPLUS.
Definition at line 168 of file Decider.cc.
References prophet::Decider::core_, prophet::Bundle::creation_ts(), prophet::Bundle::destination_id(), prophet::Stats::get_p_max(), prophet::Decider::is_relay_, prophet::BundleCore::is_route(), LOG, max_fwd_, prophet::Decider::next_hop_, prophet::Link::nexthop(), prophet::Bundle::num_forward(), prophet::Table::p_value(), prophet::Decider::remote_, prophet::Link::remote_eid(), prophet::Bundle::sequence_num(), and prophet::Decider::stats_.
friend class Decider [friend] |
Reimplemented from prophet::FwdDeciderGRTRPLUS.
u_int prophet::FwdDeciderGTMXPLUS::max_fwd_ [protected] |
local configuration setting for NF_max
Definition at line 221 of file Decider.h.
Referenced by max_forward(), and operator()().
1.6.3