IBR-DTNSuite  0.8
dtn::routing::ProphetRoutingExtension::GRTR_Strategy Class Reference

The GRTR forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination. More...

#include <ProphetRoutingExtension.h>

Inheritance diagram for dtn::routing::ProphetRoutingExtension::GRTR_Strategy:
Collaboration diagram for dtn::routing::ProphetRoutingExtension::GRTR_Strategy:

List of all members.

Public Member Functions

 GRTR_Strategy ()
virtual ~GRTR_Strategy ()
virtual bool shallForward (const dtn::data::EID &neighbor, const dtn::data::MetaBundle &bundle) const

Detailed Description

The GRTR forwarding strategy. Using this strategy, packets are forwarding, if the neighbor has a higher predictability then the destination.

Definition at line 255 of file ProphetRoutingExtension.h.


Constructor & Destructor Documentation


Member Function Documentation

bool dtn::routing::ProphetRoutingExtension::GRTR_Strategy::shallForward ( const dtn::data::EID neighbor,
const dtn::data::MetaBundle bundle 
) const [virtual]

The prophetRoutingExtension calls this function for every bundle that can be forwarded to a neighbor and forwards it depending on the return value.

Parameters:
neighborthe neighbor to forward to
bundlethe bundle that can be forwarded
prophet_routerReference to the ProphetRoutingExtension to access its parameters
Returns:
true if the bundle should be forwarded

Implements dtn::routing::ProphetRoutingExtension::ForwardingStrategy.

Definition at line 919 of file ProphetRoutingExtension.cpp.

References dtn::data::MetaBundle::destination.


The documentation for this class was generated from the following files: