DTN::ExplicitRoute Class Reference

An exact-match routing table entry. More...

#include <dtn/ExplicitRoute.h>

Inheritance diagram for DTN::ExplicitRoute:

Inheritance graph
[legend]
Collaboration diagram for DTN::ExplicitRoute:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExplicitRoute (const ByteString &t, Link *l)
 Constructor.
virtual ~ExplicitRoute ()
 Virtual destructor.
bool matches (const Bundle &b) const
 Test the appropriateness of this route for a Bundle.
const ByteString & target () const
 
Returns:
the target of this route


Protected Member Functions

 ExplicitRoute ()
 Default constructor (disabled).


Detailed Description

An exact-match routing table entry.

Definition at line 42 of file ExplicitRoute.h.


Constructor & Destructor Documentation

ExplicitRoute::ExplicitRoute ( const ByteString &  t,
Link l 
)

Constructor.

Parameters:
t The address of a target (destination)
l The outgoing link for this route (passed to Route)

Definition at line 36 of file ExplicitRoute.cc.


Member Function Documentation

bool ExplicitRoute::matches ( const Bundle b  )  const [virtual]

Test the appropriateness of this route for a Bundle.

In general, this will depend on the specific subtype of Route. For example, a prefix routing algorithm will look at the Bundle's destination and see if the route is configured with a prefix of that destination.

Parameters:
b A bundle to forward
Returns:
whether this route is appropriate for b

Implements DTN::Route.

Definition at line 47 of file ExplicitRoute.cc.

References DTN::Bundle::destination().


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:48 2008 for Pydtn Simulator by  doxygen 1.5.4