dtnsim::SimRegistration Class Reference

#include <SimRegistration.h>

Inheritance diagram for dtnsim::SimRegistration:

dtn::Registration oasys::SerializableObject oasys::Logger List of all members.

Detailed Description

Registration used for the simulator.

Definition at line 53 of file SimRegistration.h.

Public Member Functions

 SimRegistration (Node *node, const EndpointID &endpoint)
void deliver_bundle (Bundle *bundle)
 Deliver the given bundle.

Public Attributes

std::map< double, Bundle * > arrivals_
 Log each bundle's arrival time (and the bundle itself) in a big arrivals table.

Protected Attributes

Nodenode_


Constructor & Destructor Documentation

dtnsim::SimRegistration::SimRegistration ( Node node,
const EndpointID endpoint 
)

Definition at line 52 of file SimRegistration.cc.

References log_debug, oasys::Logger::logpathf(), dtnsim::Node::name(), and dtn::Registration::regid_.


Member Function Documentation

void dtnsim::SimRegistration::deliver_bundle ( Bundle bundle  )  [virtual]

Deliver the given bundle.

Implements dtn::Registration.

Definition at line 61 of file SimRegistration.cc.

References arrivals_, dtn::Bundle::bundleid_, dtn::EndpointID::c_str(), dtn::Bundle::dest_, dtn::BundlePayload::length(), log_info, dtnsim::Node::name(), node_, dtn::Bundle::payload_, dtn::Bundle::source_, and dtnsim::Simulator::time().


Member Data Documentation

std::map<double, Bundle*> dtnsim::SimRegistration::arrivals_

Log each bundle's arrival time (and the bundle itself) in a big arrivals table.

Definition at line 66 of file SimRegistration.h.

Referenced by deliver_bundle().

Node* dtnsim::SimRegistration::node_ [protected]

Definition at line 69 of file SimRegistration.h.

Referenced by deliver_bundle().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:05 2006 for DTN Reference Implementation by  doxygen 1.5.1