TracerChain Class Reference
[pydtn]

Tracer that passes objects to a series of other Tracers. More...

#include <pydtn/Tracer.h>

Inheritance diagram for TracerChain:

Inheritance graph
[legend]
Collaboration diagram for TracerChain:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< Tracer * > ChainType
 The internal data type.

Public Member Functions

 TracerChain ()
 Default constructor.
virtual ~TracerChain ()
 Virtual destructor.
void node (const WrapNode &wn)
 Create a trace entry for a WrapNode.
void link (const WrapLink &wl)
 Create a trace entry for a WrapLink.
void enqueue (const DTN::Bundle &b, const DTN::Node *n)
 Create a trace entry for an enqueued bundle.
void dequeue (const DTN::Bundle &b, const DTN::Node *n)
 Create a trace entry for a dequeued bundle.
void send (const DTN::Bundle &b, const DTN::Node *n)
 Create a trace entry for a bundle send.
void receive (const DTN::Bundle &b, const DTN::Node *n)
 Create a trace entry for a received bundle.
void drop (const DTN::Bundle &b, const DTN::DropCause &c, const DTN::Node *n)
 Create a trace entry for a dropped bundle.
void addTracer (Tracer *t)
 Add another Tracer to the chain.


Detailed Description

Tracer that passes objects to a series of other Tracers.

Definition at line 93 of file Tracer.h.


Member Function Documentation

void TracerChain::node ( const WrapNode wn  )  [virtual]

Create a trace entry for a WrapNode.

Parameters:
wn The node to record

Implements Tracer.

Definition at line 51 of file Tracer.cc.

Referenced by WrapNode::configure().

void TracerChain::link ( const WrapLink wl  )  [virtual]

Create a trace entry for a WrapLink.

Parameters:
wl The link to record

Implements Tracer.

Definition at line 65 of file Tracer.cc.

Referenced by WrapLink::configure(), and WrapLink::handler().

void TracerChain::enqueue ( const DTN::Bundle b,
const DTN::Node n 
) [virtual]

Create a trace entry for an enqueued bundle.

Parameters:
b The bundle being enqueued
n The node at which the bundle is enqueued

Implements Tracer.

Definition at line 79 of file Tracer.cc.

Referenced by TraceConsumer::persistentStore().

void TracerChain::dequeue ( const DTN::Bundle b,
const DTN::Node n 
) [virtual]

Create a trace entry for a dequeued bundle.

Parameters:
b The bundle being dequeued
n The node at which the bundle is dequeued

Implements Tracer.

Definition at line 94 of file Tracer.cc.

Referenced by TraceConsumer::persistentRemove().

void TracerChain::send ( const DTN::Bundle b,
const DTN::Node n 
) [virtual]

Create a trace entry for a bundle send.

Parameters:
b The bundle being sent
n The node from which the bundle is sent

Implements Tracer.

Definition at line 109 of file Tracer.cc.

Referenced by TraceConsumer::send().

void TracerChain::receive ( const DTN::Bundle b,
const DTN::Node n 
) [virtual]

Create a trace entry for a received bundle.

Parameters:
b The bundle being received
n The node at which the bundle is received

Implements Tracer.

Definition at line 124 of file Tracer.cc.

Referenced by TraceConsumer::recv().

void TracerChain::drop ( const DTN::Bundle b,
const DTN::DropCause c,
const DTN::Node n 
) [virtual]

Create a trace entry for a dropped bundle.

Parameters:
b The bundle being dropped
c The reason for dropping the bundle
n The node at which the drop occurs

Implements Tracer.

Definition at line 139 of file Tracer.cc.

Referenced by TraceConsumer::drop().

void TracerChain::addTracer ( Tracer t  ) 

Add another Tracer to the chain.

Parameters:
t A trace generator; takes ownership

Definition at line 156 of file Tracer.cc.

Referenced by flowtrace_setup(), namtrace_setup(), and storetrace_setup().


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