dtn::FwdStrategy Class Reference

#include <ProphetLists.h>

Inheritance diagram for dtn::FwdStrategy:

dtn::FwdStrategyCompGRTRMAX dtn::FwdStrategyCompGRTRSORT

List of all members.


Detailed Description

Forwarding strategy null comparator (GRTR, GTMX, GRTR_PLUS, GTMX_PLUS).

Definition at line 704 of file ProphetLists.h.


Public Member Functions

virtual ~FwdStrategy ()
 FwdStrategy (const FwdStrategy &fs)
bool operator() (const Bundle *, const Bundle *) const

Static Public Member Functions

static FwdStrategystrategy (Prophet::fwd_strategy_t fs, ProphetTable *local=NULL, ProphetTable *remote=NULL)
 Factory method for strategy comparators.

Protected Member Functions

 FwdStrategy (Prophet::fwd_strategy_t fs=Prophet::INVALID_FS)

Protected Attributes

Prophet::fwd_strategy_t fs_

Constructor & Destructor Documentation

virtual dtn::FwdStrategy::~FwdStrategy (  )  [inline, virtual]

Definition at line 707 of file ProphetLists.h.

dtn::FwdStrategy::FwdStrategy ( const FwdStrategy fs  )  [inline]

Definition at line 708 of file ProphetLists.h.

Referenced by strategy().

dtn::FwdStrategy::FwdStrategy ( Prophet::fwd_strategy_t  fs = Prophet::INVALID_FS  )  [inline, protected]

Definition at line 719 of file ProphetLists.h.


Member Function Documentation

bool dtn::FwdStrategy::operator() ( const Bundle ,
const Bundle  
) const [inline]

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

Definition at line 711 of file ProphetLists.h.

FwdStrategy * dtn::FwdStrategy::strategy ( Prophet::fwd_strategy_t  fs,
ProphetTable local = NULL,
ProphetTable remote = NULL 
) [inline, static]

Factory method for strategy comparators.

Definition at line 781 of file ProphetLists.h.

References ExamineDump::f, FwdStrategy(), dtn::Prophet::GRTR, dtn::Prophet::GRTR_MAX, dtn::Prophet::GRTR_PLUS, dtn::Prophet::GRTR_SORT, dtn::Prophet::GTMX, and dtn::Prophet::GTMX_PLUS.

Referenced by dtn::ProphetEncounter::send_bundle_offer().


Member Data Documentation

Prophet::fwd_strategy_t dtn::FwdStrategy::fs_ [protected]

Definition at line 722 of file ProphetLists.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:36:22 2007 for DTN Reference Implementation by  doxygen 1.5.3