Forward the bundle only if P(B,D) > P(A,D) (same as GRTR) and if P(B,D) > P_max where P_max is the largest delivery predictability reported by a node to which the bundle has been sent so far. More...
#include <Decider.h>
Public Member Functions | |
virtual | ~FwdDeciderGRTRPLUS () |
Destructor. | |
bool | operator() (const Bundle *) const |
Virtual from Decider. | |
Protected Member Functions | |
FwdDeciderGRTRPLUS (FwdStrategy::fwd_strategy_t fs, const Link *nexthop, BundleCore *core, const Table *local, const Table *remote, const Stats *stats, bool relay) | |
Constructor. | |
Friends | |
class | Decider |
Forward the bundle only if P(B,D) > P(A,D) (same as GRTR) and if P(B,D) > P_max where P_max is the largest delivery predictability reported by a node to which the bundle has been sent so far.
Definition at line 162 of file Decider.h.
virtual prophet::FwdDeciderGRTRPLUS::~FwdDeciderGRTRPLUS | ( | ) | [inline, virtual] |
prophet::FwdDeciderGRTRPLUS::FwdDeciderGRTRPLUS | ( | FwdStrategy::fwd_strategy_t | fs, | |
const Link * | nexthop, | |||
BundleCore * | core, | |||
const Table * | local, | |||
const Table * | remote, | |||
const Stats * | stats, | |||
bool | relay | |||
) | [protected] |
Constructor.
Protected to force entry via factory method.
Definition at line 118 of file Decider.cc.
Virtual from Decider.
Reimplemented from prophet::FwdDeciderGRTR.
Reimplemented in prophet::FwdDeciderGTMXPLUS.
Definition at line 128 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, prophet::Decider::next_hop_, prophet::Link::nexthop(), 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::FwdDeciderGRTR.
Reimplemented in prophet::FwdDeciderGTMXPLUS.