#include <FwdStrategy.h>
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 FwdStrategyComp * | strategy (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. |
Definition at line 30 of file FwdStrategy.h.
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().