A Discrete-Event Network Simulator
API
Classes | Functions | Variables
wifi-manager-example.cc File Reference
#include "ns3/log.h"
#include "ns3/config.h"
#include "ns3/uinteger.h"
#include "ns3/boolean.h"
#include "ns3/double.h"
#include "ns3/gnuplot.h"
#include "ns3/command-line.h"
#include "ns3/yans-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/propagation-loss-model.h"
#include "ns3/propagation-delay-model.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/mobility-helper.h"
#include "ns3/wifi-net-device.h"
#include "ns3/packet-socket-helper.h"
#include "ns3/packet-socket-client.h"
#include "ns3/packet-socket-server.h"

Go to the source code of this file.

Classes

struct  StandardInfo
 StandardInfo structure. More...
 
struct  Step
 Step structure. More...
 

Functions

void ChangeSignalAndReportRate (Ptr< FixedRssLossModel > rssModel, struct Step step, double rss, Gnuplot2dDataset &rateDataset, Gnuplot2dDataset &actualDataset)
 
void PacketRx (Ptr< const Packet > pkt, const Address &addr)
 
void RateChange (uint64_t oldVal, uint64_t newVal)
 

Variables

double g_intervalBytes = 0
 
uint64_t g_intervalRate = 0
 
const double NOISE_DBM_Hz = -174.0
 
double noiseDbm = NOISE_DBM_Hz
 

Function Documentation

◆ ChangeSignalAndReportRate()

void ChangeSignalAndReportRate ( Ptr< FixedRssLossModel rssModel,
struct Step  step,
double  rss,
Gnuplot2dDataset rateDataset,
Gnuplot2dDataset actualDataset 
)

◆ PacketRx()

void PacketRx ( Ptr< const Packet pkt,
const Address addr 
)

Definition at line 70 of file wifi-manager-example.cc.

References g_intervalBytes, ns3::Packet::GetSize(), and NS_LOG_DEBUG.

◆ RateChange()

void RateChange ( uint64_t  oldVal,
uint64_t  newVal 
)

Definition at line 77 of file wifi-manager-example.cc.

References g_intervalRate, and NS_LOG_DEBUG.

Variable Documentation

◆ g_intervalBytes

double g_intervalBytes = 0

Definition at line 66 of file wifi-manager-example.cc.

Referenced by ChangeSignalAndReportRate(), and PacketRx().

◆ g_intervalRate

uint64_t g_intervalRate = 0

Definition at line 67 of file wifi-manager-example.cc.

Referenced by ChangeSignalAndReportRate(), and RateChange().

◆ NOISE_DBM_Hz

const double NOISE_DBM_Hz = -174.0

Definition at line 63 of file wifi-manager-example.cc.

◆ noiseDbm

double noiseDbm = NOISE_DBM_Hz

Definition at line 64 of file wifi-manager-example.cc.

Referenced by ChangeSignalAndReportRate().