prophet::FwdStrategy Struct Reference

#include <FwdStrategy.h>

List of all members.

Public Types

enum  fwd_strategy_t {
  INVALID_FS = 0, GRTR, GTMX, GRTR_PLUS,
  GTMX_PLUS, GRTR_SORT, GRTR_MAX
}
 

Forwarding strategies p.

More...

Static Public Member Functions

static const char * fs_to_str (fwd_strategy_t fs)
 Utility function to convert type code to const char*.
static FwdStrategyCompstrategy (FwdStrategy::fwd_strategy_t fs, const Table *local_nodes=NULL, const Table *remote_nodes=NULL)
 Factory method to create instance of appropriate type of comparator.

Detailed Description

Definition at line 30 of file FwdStrategy.h.


Member Enumeration Documentation

Forwarding strategies p.

17, 3.6

Enumerator:
INVALID_FS 
GRTR 
GTMX 
GRTR_PLUS 
GTMX_PLUS 
GRTR_SORT 
GRTR_MAX 

Definition at line 36 of file FwdStrategy.h.


Member Function Documentation

static const char* prophet::FwdStrategy::fs_to_str ( fwd_strategy_t  fs  )  [inline, static]

Utility function to convert type code to const char*.

Definition at line 50 of file FwdStrategy.h.

References CASE, GRTR, GRTR_MAX, GRTR_PLUS, GRTR_SORT, GTMX, and GTMX_PLUS.

Referenced by dtn::ProphetCommand::exec(), and prophet::FwdStrategyComp::fwd_strategy_str().

FwdStrategyComp * prophet::FwdStrategy::strategy ( FwdStrategy::fwd_strategy_t  fs,
const Table local_nodes = NULL,
const Table remote_nodes = NULL 
) [inline, static]

Factory method to create instance of appropriate type of comparator.

Definition at line 219 of file FwdStrategy.h.

References GRTR, GRTR_MAX, GRTR_PLUS, GRTR_SORT, GTMX, GTMX_PLUS, and INVALID_FS.

Referenced by prophet::TLVCreator::offer().


The documentation for this struct was generated from the following file:
Generated on Sun Nov 21 13:21:31 2010 for DTN Reference Implementation by  doxygen 1.6.3