DTN::DropTail Class Reference

A simple first-come, first-served VolatileStorePolicy. More...

#include <dtn/DropTail.h>

Inheritance diagram for DTN::DropTail:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DropTail (Node *owner)
 Constructor.
virtual ~DropTail ()
 Virtual destructor.
BundlePointer store (Bundle *b)
 Attempt to place a Bundle in the BundleStore.


Detailed Description

A simple first-come, first-served VolatileStorePolicy.

When the available space is filled, Bundles are rejected.

Definition at line 42 of file DropTail.h.


Member Function Documentation

BundlePointer DropTail::store ( Bundle b  )  [virtual]

Attempt to place a Bundle in the BundleStore.

Parameters:
b A pointer to an incoming Bundle
Returns:
a reference to the stored Bundle, or a NULL BundlePointer if b was dropped

Implements DTN::VolatileStorePolicy.

Definition at line 48 of file DropTail.cc.

References DTN::BundleStore::addBundle(), DTN::NodePolicy::m_owner, DTN::NodePolicy::m_store, DTN::Bundle::size(), DTN::Node::usedVolatileCap(), and DTN::Node::volatileCap().


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