Tracer to collect link-layer rate information about links. More...
#include <l2-rate-tracer.hpp>
Public Member Functions | |
L2RateTracer (std::shared_ptr< std::ostream > os, Ptr< Node > node) | |
Network layer tracer constructor. More... | |
virtual | ~L2RateTracer () |
void | SetAveragingPeriod (const Time &period) |
virtual void | PrintHeader (std::ostream &os) const |
virtual void | Print (std::ostream &os) const |
virtual void | Drop (Ptr< const Packet >) |
Public Member Functions inherited from ns3::L2Tracer | |
L2Tracer (Ptr< Node > node) | |
virtual | ~L2Tracer () |
void | Connect () |
Static Public Member Functions | |
static void | InstallAll (const std::string &file, Time averagingPeriod=Seconds(0.5)) |
Helper method to install tracers on all simulation nodes. More... | |
static void | Destroy () |
Explicit request to remove all statically created tracers. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ns3::L2Tracer | |
std::string | m_node |
Ptr< Node > | m_nodePtr |
Tracer to collect link-layer rate information about links.
Definition at line 39 of file l2-rate-tracer.hpp.
ns3::L2RateTracer::L2RateTracer | ( | std::shared_ptr< std::ostream > | os, |
Ptr< Node > | node | ||
) |
Network layer tracer constructor.
Definition at line 84 of file l2-rate-tracer.cpp.
References SetAveragingPeriod().
|
virtual |
Definition at line 91 of file l2-rate-tracer.cpp.
|
static |
Helper method to install tracers on all simulation nodes.
file | File to which traces will be written |
averagingPeriod | Defines averaging period for the rate calculation, as well as how often data will be written into the trace file (default, every half second) |
Definition at line 48 of file l2-rate-tracer.cpp.
References ns3::g_tracers.
|
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 42 of file l2-rate-tracer.cpp.
References ns3::g_tracers.
void ns3::L2RateTracer::SetAveragingPeriod | ( | const Time & | period | ) |
Definition at line 97 of file l2-rate-tracer.cpp.
Referenced by L2RateTracer().
|
virtual |
Implements ns3::L2Tracer.
Definition at line 114 of file l2-rate-tracer.cpp.
|
virtual |
|
virtual |
Implements ns3::L2Tracer.
Definition at line 166 of file l2-rate-tracer.cpp.