Forward the bundle only if P(B,D) > P(A,D). More...
#include <Decider.h>
Public Member Functions | |
virtual | ~FwdDeciderGRTR () |
Destructor. | |
bool | operator() (const Bundle *) const |
Virtual from Decider. | |
Protected Member Functions | |
FwdDeciderGRTR (FwdStrategy::fwd_strategy_t fs, const Link *nexthop, BundleCore *core, const Table *local, const Table *remote, const Stats *stats=NULL, bool relay=true) | |
Constructor. | |
Friends | |
class | Decider |
Forward the bundle only if P(B,D) > P(A,D).
That is, predictability for route via peer is greater than route's predictability locally
Definition at line 97 of file Decider.h.
virtual prophet::FwdDeciderGRTR::~FwdDeciderGRTR | ( | ) | [inline, virtual] |
prophet::FwdDeciderGRTR::FwdDeciderGRTR | ( | FwdStrategy::fwd_strategy_t | fs, | |
const Link * | nexthop, | |||
BundleCore * | core, | |||
const Table * | local, | |||
const Table * | remote, | |||
const Stats * | stats = NULL , |
|||
bool | relay = true | |||
) | [protected] |
Virtual from Decider.
Implements prophet::Decider.
Reimplemented in prophet::FwdDeciderGTMX, prophet::FwdDeciderGRTRPLUS, and prophet::FwdDeciderGTMXPLUS.
Definition at line 35 of file Decider.cc.
References prophet::Decider::core_, prophet::Bundle::creation_ts(), prophet::Bundle::destination_id(), prophet::BundleCore::get_route(), prophet::Decider::is_relay_, prophet::BundleCore::is_route(), prophet::Decider::local_, LOG, prophet::Decider::next_hop_, prophet::Table::p_value(), prophet::Decider::remote_, prophet::Link::remote_eid(), prophet::Bundle::sequence_num(), and prophet::BundleCore::should_fwd().
friend class Decider [friend] |
Reimplemented in prophet::FwdDeciderGTMX, prophet::FwdDeciderGRTRPLUS, and prophet::FwdDeciderGTMXPLUS.