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

This class is a abstract base class for all prophet forwarding strategies. More...

#include <ProphetRoutingExtension.h>

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

List of all members.

Public Member Functions

 ForwardingStrategy ()
virtual ~ForwardingStrategy ()=0
virtual bool shallForward (const dtn::data::EID &neighbor, const dtn::data::MetaBundle &bundle) const =0
bool neighborDPIsGreater (const dtn::data::EID &neighbor, const dtn::data::EID &destination) const
void setProphetRouter (ProphetRoutingExtension *router)

Protected Attributes

ProphetRoutingExtension_prophet_router

Detailed Description

This class is a abstract base class for all prophet forwarding strategies.

Definition at line 56 of file ProphetRoutingExtension.h.


Constructor & Destructor Documentation


Member Function Documentation

checks if the deliveryPredictability of the neighbor is higher than that of the destination of the bundle.

Definition at line 885 of file ProphetRoutingExtension.cpp.

virtual bool dtn::routing::ProphetRoutingExtension::ForwardingStrategy::shallForward ( const dtn::data::EID neighbor,
const dtn::data::MetaBundle bundle 
) const [pure 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

Implemented in dtn::routing::ProphetRoutingExtension::GTMX_Strategy, and dtn::routing::ProphetRoutingExtension::GRTR_Strategy.


Member Data Documentation


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