dtn::core::AbstractBundleStorage Class Reference

#include <AbstractBundleStorage.h>

Inheritance diagram for dtn::core::AbstractBundleStorage:

dtn::core::EventReceiver dtn::core::SimpleBundleStorage

List of all members.

Public Member Functions

virtual void store (const BundleSchedule &schedule)=0
virtual BundlestoreFragment (const Bundle &bundle)=0
virtual void clear ()
virtual bool isEmpty ()
virtual unsigned int getCount ()
void raiseEvent (const Event *evt)

Protected Member Functions

 AbstractBundleStorage ()
 ~AbstractBundleStorage ()
void wait ()
void stopWait ()
virtual void eventNodeAvailable (const Node &node)
virtual void eventNodeUnavailable (const Node &node)

Private Attributes

Conditional m_breakwait


Constructor & Destructor Documentation

dtn::core::AbstractBundleStorage::AbstractBundleStorage (  )  [protected]

dtn::core::AbstractBundleStorage::~AbstractBundleStorage (  )  [protected]


Member Function Documentation

virtual void dtn::core::AbstractBundleStorage::store ( const BundleSchedule schedule  )  [pure virtual]

store a schedule for later use

Parameters:
schedule the schedule to store

Implemented in dtn::core::SimpleBundleStorage.

Referenced by raiseEvent().

virtual Bundle* dtn::core::AbstractBundleStorage::storeFragment ( const Bundle bundle  )  [pure virtual]

Store a bundle fragment in the storage. If all fragments are available in the storage, they are merged and return by this method. If not, only NULL is returned.

Implemented in dtn::core::SimpleBundleStorage.

Referenced by raiseEvent().

virtual void dtn::core::AbstractBundleStorage::clear (  )  [inline, virtual]

Clears all bundles, schedules and fragments in the storage.

Reimplemented in dtn::core::SimpleBundleStorage.

Referenced by ~AbstractBundleStorage().

virtual bool dtn::core::AbstractBundleStorage::isEmpty (  )  [inline, virtual]

Returns:
True, if no bundles in the storage.

Reimplemented in dtn::core::SimpleBundleStorage.

virtual unsigned int dtn::core::AbstractBundleStorage::getCount (  )  [inline, virtual]

Returns:
the count of bundles in the storage

Reimplemented in dtn::core::SimpleBundleStorage.

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

void dtn::core::AbstractBundleStorage::wait (  )  [protected]

wait till time has changed

References m_breakwait, and dtn::utils::Conditional::wait().

Referenced by dtn::core::SimpleBundleStorage::tick().

void dtn::core::AbstractBundleStorage::stopWait (  )  [protected]

virtual void dtn::core::AbstractBundleStorage::eventNodeAvailable ( const Node node  )  [inline, protected, virtual]

Reimplemented in dtn::core::SimpleBundleStorage.

Referenced by raiseEvent().

virtual void dtn::core::AbstractBundleStorage::eventNodeUnavailable ( const Node node  )  [inline, protected, virtual]

Reimplemented in dtn::core::SimpleBundleStorage.

Referenced by raiseEvent().


Member Data Documentation

Referenced by raiseEvent(), stopWait(), and wait().


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

Generated on Wed Mar 25 12:41:33 2009 for IBR-DTN by  doxygen 1.5.6