Tracer to obtain application-level delays.
More...
#include <ndn-app-delay-tracer.h>
|
| AppDelayTracer (boost::shared_ptr< std::ostream > os, Ptr< Node > node) |
| Trace constructor that attaches to all applications on the node using node's pointer. More...
|
|
| AppDelayTracer (boost::shared_ptr< std::ostream > os, const std::string &node) |
| Trace constructor that attaches to all applications on the node using node's name. More...
|
|
| ~AppDelayTracer () |
| Destructor.
|
|
void | PrintHeader (std::ostream &os) const |
| Print head of the trace (e.g., for post-processing) More...
|
|
|
static void | InstallAll (const std::string &file) |
| Helper method to install tracers on all simulation nodes. More...
|
|
static void | Install (const NodeContainer &nodes, const std::string &file) |
| Helper method to install tracers on the selected simulation nodes. More...
|
|
static void | Install (Ptr< Node > node, const std::string &file) |
| Helper method to install tracers on a specific simulation node. More...
|
|
static Ptr< AppDelayTracer > | Install (Ptr< Node > node, boost::shared_ptr< std::ostream > outputStream) |
| Helper method to install tracers on a specific simulation node. More...
|
|
static void | Destroy () |
| Explicit request to remove all statically created tracers. More...
|
|
Tracer to obtain application-level delays.
Definition at line 47 of file ndn-app-delay-tracer.h.
ns3::ndn::AppDelayTracer::AppDelayTracer |
( |
boost::shared_ptr< std::ostream > |
os, |
|
|
Ptr< Node > |
node |
|
) |
| |
Trace constructor that attaches to all applications on the node using node's pointer.
- Parameters
-
os | reference to the output stream |
node | pointer to the node |
Definition at line 204 of file ndn-app-delay-tracer.cc.
ns3::ndn::AppDelayTracer::AppDelayTracer |
( |
boost::shared_ptr< std::ostream > |
os, |
|
|
const std::string & |
node |
|
) |
| |
Trace constructor that attaches to all applications on the node using node's name.
- Parameters
-
os | reference to the output stream |
nodeName | name of the node registered using Names::Add |
Definition at line 219 of file ndn-app-delay-tracer.cc.
void ns3::ndn::AppDelayTracer::Destroy |
( |
| ) |
|
|
static |
Explicit request to remove all statically created tracers.
This method can be helpful if simulation scenario contains several independent run, or if it is desired to do a postprocessing of the resulting data
Definition at line 56 of file ndn-app-delay-tracer.cc.
void ns3::ndn::AppDelayTracer::Install |
( |
const NodeContainer & |
nodes, |
|
|
const std::string & |
file |
|
) |
| |
|
static |
Helper method to install tracers on the selected simulation nodes.
- Parameters
-
nodes | Nodes on which to install tracer |
file | File to which traces will be written. If filename is -, then std::out is used |
- Returns
- a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable
Definition at line 106 of file ndn-app-delay-tracer.cc.
void ns3::ndn::AppDelayTracer::Install |
( |
Ptr< Node > |
node, |
|
|
const std::string & |
file |
|
) |
| |
|
static |
Helper method to install tracers on a specific simulation node.
- Parameters
-
nodes | Nodes on which to install tracer |
file | File to which traces will be written. If filename is -, then std::out is used |
averagingPeriod | How often data will be written into the trace file (default, every half second) |
- Returns
- a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable
Definition at line 150 of file ndn-app-delay-tracer.cc.
Ptr< AppDelayTracer > ns3::ndn::AppDelayTracer::Install |
( |
Ptr< Node > |
node, |
|
|
boost::shared_ptr< std::ostream > |
outputStream |
|
) |
| |
|
static |
Helper method to install tracers on a specific simulation node.
- Parameters
-
nodes | Nodes on which to install tracer |
outputStream | Smart pointer to a stream |
averagingPeriod | How often data will be written into the trace file (default, every half second) |
- Returns
- a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable
Definition at line 190 of file ndn-app-delay-tracer.cc.
void ns3::ndn::AppDelayTracer::InstallAll |
( |
const std::string & |
file | ) |
|
|
static |
Helper method to install tracers on all simulation nodes.
- Parameters
-
file | File to which traces will be written. If filename is -, then std::out is used |
- Returns
- a tuple of reference to output stream and list of tracers. !!! Attention !!! This tuple needs to be preserved for the lifetime of simulation, otherwise SEGFAULTs are inevitable
Definition at line 62 of file ndn-app-delay-tracer.cc.
void ns3::ndn::AppDelayTracer::PrintHeader |
( |
std::ostream & |
os | ) |
const |
Print head of the trace (e.g., for post-processing)
- Parameters
-
os | reference to output stream |
Definition at line 242 of file ndn-app-delay-tracer.cc.
The documentation for this class was generated from the following files: