prophet::FwdStrategyCompGRTRSORT Class Reference

#include <FwdStrategy.h>

Inheritance diagram for prophet::FwdStrategyCompGRTRSORT:

prophet::FwdStrategyComp

List of all members.


Detailed Description

Comparator for sorting Bundles according to GRTRSort, Section 3.6, Prophet March 2006.

Sorted according to metric P_(B,D) - P_(A,D), where A is local node, B is peering Prophet node, and D represents the route to the Bundle's destination.

Definition at line 129 of file FwdStrategy.h.


Public Member Functions

virtual ~FwdStrategyCompGRTRSORT ()
 Destructor.
virtual bool operator() (const Bundle *a, const Bundle *b) const
 Comparator function for FIFO ordering in a heap.
const Tablelocal_nodes () const
 Accessors.
const Tableremote_nodes () const
 Accessors.

Protected Member Functions

 FwdStrategyCompGRTRSORT (FwdStrategy::fwd_strategy_t fs, const Table *local, const Table *remote)
 Constructor is protected to restrict access to factory method.

Protected Attributes

const Tablelocal_
 list of routes as known by local node
const Tableremote_
 list of routes known by peer node

Friends

class FwdStrategy
 for factory method

Constructor & Destructor Documentation

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

Destructor.

Definition at line 135 of file FwdStrategy.h.

prophet::FwdStrategyCompGRTRSORT::FwdStrategyCompGRTRSORT ( FwdStrategy::fwd_strategy_t  fs,
const Table local,
const Table remote 
) [inline, protected]

Constructor is protected to restrict access to factory method.

Definition at line 156 of file FwdStrategy.h.


Member Function Documentation

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

Comparator function for FIFO ordering in a heap.

Reimplemented from prophet::FwdStrategyComp.

Definition at line 137 of file FwdStrategy.h.

References local_, prophet::Table::p_value(), and remote_.

const Table* prophet::FwdStrategyCompGRTRSORT::local_nodes (  )  const [inline]

Accessors.

Definition at line 146 of file FwdStrategy.h.

References local_.

const Table* prophet::FwdStrategyCompGRTRSORT::remote_nodes (  )  const [inline]

Accessors.

Definition at line 147 of file FwdStrategy.h.

References remote_.


Friends And Related Function Documentation

friend class FwdStrategy [friend]

for factory method

Reimplemented from prophet::FwdStrategyComp.

Definition at line 151 of file FwdStrategy.h.


Member Data Documentation

list of routes as known by local node

Definition at line 160 of file FwdStrategy.h.

Referenced by local_nodes(), and operator()().

list of routes known by peer node

Definition at line 161 of file FwdStrategy.h.

Referenced by operator()(), and remote_nodes().


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