Tracer to collect link-layer rate information about links. More...
#include <l2-rate-tracer.h>


Public Member Functions | |
| L2RateTracer (boost::shared_ptr< std::ostream > os, Ptr< Node > node) | |
| Network layer tracer constructor.  | |
| 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) | |
| 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 41 of file l2-rate-tracer.h.
      
  | 
  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 50 of file l2-rate-tracer.cc.
      
  | 
  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 56 of file l2-rate-tracer.cc.