IBR-DTNSuite  0.8
dtn::routing::BaseRouter Class Reference

#include <BaseRouter.h>

Inheritance diagram for dtn::routing::BaseRouter:
Collaboration diagram for dtn::routing::BaseRouter:

List of all members.

Classes

class  Endpoint
class  Extension
class  NoNeighbourFoundException
class  NoRouteFoundException
class  RoutingException
class  ThreadedExtension
class  VirtualEndpoint

Public Member Functions

 BaseRouter (dtn::storage::BundleStorage &storage)
 ~BaseRouter ()
void addExtension (BaseRouter::Extension *extension)
const std::list
< BaseRouter::Extension * > & 
getExtensions () const
void raiseEvent (const dtn::core::Event *evt)
dtn::data::Bundle getBundle (const dtn::data::BundleID &id)
dtn::storage::BundleStoragegetStorage ()
void doHandshake (const dtn::data::EID &eid)
bool isKnown (const dtn::data::BundleID &id)
bool filterKnown (const dtn::data::MetaBundle &meta)
void setKnown (const dtn::data::MetaBundle &meta)
const SummaryVector getSummaryVector ()
const SummaryVector getPurgedBundles ()
void addPurgedBundle (const dtn::data::MetaBundle &meta)
virtual const std::string getName () const
NeighborDatabasegetNeighborDB ()

Protected Member Functions

virtual void componentUp ()
virtual void componentDown ()

Detailed Description

Definition at line 32 of file BaseRouter.h.


Constructor & Destructor Documentation

implementation of the BaseRouter class

Definition at line 134 of file BaseRouter.cpp.

References addExtension().

Here is the call graph for this function:

Definition at line 148 of file BaseRouter.cpp.


Member Function Documentation

Add a routing extension to the routing core.

Parameters:
extension

Definition at line 161 of file BaseRouter.cpp.

Referenced by __daemon_run(), and BaseRouter().

Add a bundle to the purge vector of this daemon.

Parameters:
metaThe bundle to purge.

Definition at line 478 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::add().

Here is the call graph for this function:

Request a neighbor handshake

Parameters:
eid

Definition at line 437 of file BaseRouter.cpp.

References dtn::routing::NodeHandshakeExtension::doHandshake().

Here is the call graph for this function:

check if a bundle is known if the bundle is unkown add it to the known list and return false

Parameters:
id
Returns:

Definition at line 463 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::add(), and dtn::routing::BundleSummary::contains().

Referenced by raiseEvent().

Here is the call graph for this function:

Get a bundle out of the storage.

Parameters:
idThe ID of the bundle.
Returns:
The requested bundle.

Definition at line 432 of file BaseRouter.cpp.

References dtn::storage::BundleStorage::get().

Here is the call graph for this function:

Returns a reference to all extensions.

Returns:

Definition at line 166 of file BaseRouter.cpp.

const std::string dtn::routing::BaseRouter::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 490 of file BaseRouter.cpp.

Access to the neighbor database. Where several data about the neighbors is stored.

Returns:

Definition at line 495 of file BaseRouter.cpp.

Get a vector (bloomfilter) of all purged bundles.

Returns:

Definition at line 484 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::getSummaryVector().

Here is the call graph for this function:

Get a vector (bloomfilter) of all known bundles.

Returns:

Definition at line 472 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::getSummaryVector().

Here is the call graph for this function:

This method returns true, if the given BundleID is known.

Parameters:
id
Returns:

Definition at line 454 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::contains().

Here is the call graph for this function:

void dtn::routing::BaseRouter::raiseEvent ( const dtn::core::Event evt) [virtual]

This method add a BundleID to the set of known bundles

Parameters:
id

Definition at line 447 of file BaseRouter.cpp.

References dtn::routing::BundleSummary::add().

Referenced by raiseEvent().

Here is the call graph for this function:


The documentation for this class was generated from the following files: