prophet::FwdStrategyComp Class Reference

#include <FwdStrategy.h>

Inheritance diagram for prophet::FwdStrategyComp:

prophet::FwdStrategyCompGRTRMAX prophet::FwdStrategyCompGRTRSORT

List of all members.


Detailed Description

Prophet forwarding strategy is laid out in Prophet I-D March 2006 Section 3.6, and involves two pieces: a decider function and a sort order.

FwdStrategyComp and its derivatives fill the comparator function for sort order. FwdStrategyComp defaults to FIFO ordering.

Definition at line 82 of file FwdStrategy.h.


Public Member Functions

virtual ~FwdStrategyComp ()
 Destructor.
virtual bool operator() (const Bundle *a, const Bundle *b) const
 Comparator function for FIFO ordering in a heap.
FwdStrategy::fwd_strategy_t fwd_strategy () const
 Accessors.
const char * fwd_strategy_str () const
 Accessors.

Protected Member Functions

 FwdStrategyComp (FwdStrategy::fwd_strategy_t fs=FwdStrategy::INVALID_FS)
 Constructor is protected to force use of factory method.

Protected Attributes

FwdStrategy::fwd_strategy_t strategy_
 which strategy is in use

Friends

class FwdStrategy
 for factory method

Constructor & Destructor Documentation

virtual prophet::FwdStrategyComp::~FwdStrategyComp (  )  [inline, virtual]

Destructor.

Definition at line 89 of file FwdStrategy.h.

prophet::FwdStrategyComp::FwdStrategyComp ( FwdStrategy::fwd_strategy_t  fs = FwdStrategy::INVALID_FS  )  [inline, protected]

Constructor is protected to force use of factory method.

Definition at line 116 of file FwdStrategy.h.


Member Function Documentation

virtual bool prophet::FwdStrategyComp::operator() ( const Bundle a,
const Bundle b 
) const [inline, virtual]

Comparator function for FIFO ordering in a heap.

Reimplemented in prophet::FwdStrategyCompGRTRSORT, and prophet::FwdStrategyCompGRTRMAX.

Definition at line 94 of file FwdStrategy.h.

FwdStrategy::fwd_strategy_t prophet::FwdStrategyComp::fwd_strategy (  )  const [inline]

Accessors.

Definition at line 100 of file FwdStrategy.h.

References strategy_.

const char* prophet::FwdStrategyComp::fwd_strategy_str (  )  const [inline]

Accessors.

Definition at line 104 of file FwdStrategy.h.

References prophet::FwdStrategy::fs_to_str(), and strategy_.


Friends And Related Function Documentation

friend class FwdStrategy [friend]

for factory method

Reimplemented in prophet::FwdStrategyCompGRTRSORT, and prophet::FwdStrategyCompGRTRMAX.

Definition at line 111 of file FwdStrategy.h.


Member Data Documentation

which strategy is in use

Definition at line 119 of file FwdStrategy.h.

Referenced by fwd_strategy(), and fwd_strategy_str().


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

Generated on Mon Jul 21 14:12:22 2008 for DTN Reference Implementation by  doxygen 1.5.6