A Discrete-Event Network Simulator
API
double-probe-example.cc File Reference
#include <string>
#include "ns3/core-module.h"
#include "ns3/double-probe.h"
+ Include dependency graph for double-probe-example.cc:

Go to the source code of this file.

Classes

class  Emitter
 This is our test object, an object that increments counters at various times and emits one of them as a trace source. More...
 

Functions

void NotifyViaProbe (std::string context, double oldVal, double newVal)
 
void NotifyViaTraceSource (std::string context, double oldVal, double newVal)
 

Detailed Description

Usage

$ ./ns3 run "double-probe-example"

Definition in file double-probe-example.cc.

Function Documentation

◆ NotifyViaProbe()

void NotifyViaProbe ( std::string  context,
double  oldVal,
double  newVal 
)

Definition at line 119 of file double-probe-example.cc.

References NS_LOG_DEBUG.

◆ NotifyViaTraceSource()

void NotifyViaTraceSource ( std::string  context,
double  oldVal,
double  newVal 
)

Definition at line 112 of file double-probe-example.cc.

References NS_LOG_DEBUG.