prophet::QueueComp Class Reference

Bundle queuing policy requires a sort order, which is provided by QueueComp and its derivatives. More...

#include <QueuePolicy.h>

Inheritance diagram for prophet::QueueComp:
prophet::QueueCompLEPR prophet::QueueCompLMOPR prophet::QueueCompMOFO prophet::QueueCompMOPR prophet::QueueCompSHLI

List of all members.

Public Member Functions

virtual ~QueueComp ()
 Destructor.
virtual bool operator() (const Bundle *a, const Bundle *b) const
 Comparator operator.

QueuePolicy::q_policy_t qp () const
 Accessors.
const Statsstats () const
 Accessors.
const Tablenodes () const
 Accessors.

Public Attributes

u_int min_fwd_
 Only evict bundles whose NF > min_fwd_.
bool verbose_
 debug setting

Protected Member Functions

 QueueComp (QueuePolicy::q_policy_t qp=QueuePolicy::INVALID_QP, const Stats *stats=NULL, const Table *nodes=NULL, u_int minfwd=0)
 Constructor, protected to enforce factory method.

Protected Attributes

QueuePolicy::q_policy_t qp_
 type code for this comparator's policy
const Statsstats_
 For stats lookup per Bundle.
const Tablenodes_
 For p_value lookup per Bundle.

Friends

class QueuePolicy

Detailed Description

Bundle queuing policy requires a sort order, which is provided by QueueComp and its derivatives.

Definition at line 104 of file QueuePolicy.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 110 of file QueuePolicy.h.

prophet::QueueComp::QueueComp ( QueuePolicy::q_policy_t  qp = QueuePolicy::INVALID_QP,
const Stats stats = NULL,
const Table nodes = NULL,
u_int  minfwd = 0 
) [inline, protected]

Constructor, protected to enforce factory method.

Definition at line 139 of file QueuePolicy.h.


Member Function Documentation

const Table* prophet::QueueComp::nodes (  )  const [inline]

Accessors.

Definition at line 130 of file QueuePolicy.h.

References nodes_.

virtual bool prophet::QueueComp::operator() ( const Bundle a,
const Bundle b 
) const [inline, virtual]
QueuePolicy::q_policy_t prophet::QueueComp::qp (  )  const [inline]
const Stats* prophet::QueueComp::stats (  )  const [inline]

Accessors.

Definition at line 129 of file QueuePolicy.h.

References stats_.


Friends And Related Function Documentation

friend class QueuePolicy [friend]

Member Data Documentation

Only evict bundles whose NF > min_fwd_.

Definition at line 153 of file QueuePolicy.h.

Referenced by prophet::Repository::evict(), and prophet::Controller::set_queue_policy().

const Table* prophet::QueueComp::nodes_ [protected]

For p_value lookup per Bundle.

Definition at line 150 of file QueuePolicy.h.

Referenced by nodes(), and prophet::QueueCompLEPR::operator()().

type code for this comparator's policy

Definition at line 148 of file QueuePolicy.h.

Referenced by qp().

const Stats* prophet::QueueComp::stats_ [protected]

For stats lookup per Bundle.

Definition at line 149 of file QueuePolicy.h.

Referenced by prophet::QueueCompLMOPR::operator()(), prophet::QueueCompMOPR::operator()(), and stats().


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