#include "ns3/attribute-container.h"
#include "ns3/boolean.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/enum.h"
#include "ns3/gnuplot.h"
#include "ns3/he-configuration.h"
#include "ns3/ht-configuration.h"
#include "ns3/log.h"
#include "ns3/mobility-helper.h"
#include "ns3/packet-socket-client.h"
#include "ns3/packet-socket-helper.h"
#include "ns3/packet-socket-server.h"
#include "ns3/propagation-delay-model.h"
#include "ns3/propagation-loss-model.h"
#include "ns3/rng-seed-manager.h"
#include "ns3/ssid.h"
#include "ns3/tuple.h"
#include "ns3/uinteger.h"
#include "ns3/wifi-mac.h"
#include "ns3/wifi-net-device.h"
#include "ns3/yans-wifi-helper.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, Step step, dBm_u rss, dBm_u noise, Gnuplot2dDataset &rateDataset, Gnuplot2dDataset &actualDataset) |
Change the signal model and report the rate. | |
void | PacketRx (Ptr< const Packet > pkt, const Address &addr) |
Packet received. | |
void | RateChange (uint64_t oldVal, uint64_t newVal) |
Rate changed. | |
Variables | |
double | g_intervalBytes = 0 |
Bytes received in an interval. | |
uint64_t | g_intervalRate = 0 |
Rate in an interval. | |
void ChangeSignalAndReportRate | ( | Ptr< FixedRssLossModel > | rssModel, |
Step | step, | ||
dBm_u | rss, | ||
dBm_u | noise, | ||
Gnuplot2dDataset & | rateDataset, | ||
Gnuplot2dDataset & | actualDataset ) |
Change the signal model and report the rate.
rssModel | The new RSS model. |
step | The step to use. |
rss | The RSS. |
noise | The noise. |
rateDataset | The rate dataset. |
actualDataset | The actual dataset. |
Definition at line 165 of file wifi-manager-example.cc.
References ns3::Gnuplot2dDataset::Add(), ChangeSignalAndReportRate(), g_intervalBytes, g_intervalRate, ns3::Simulator::Now(), NS_LOG_FUNCTION, NS_LOG_INFO, ns3::Time::S, ns3::Simulator::Schedule(), ns3::Seconds(), Step::stepSize, and Step::stepTime.
Referenced by ChangeSignalAndReportRate().
Packet received.
pkt | The packet. |
addr | The sender address. |
Definition at line 76 of file wifi-manager-example.cc.
References g_intervalBytes.
void RateChange | ( | uint64_t | oldVal, |
uint64_t | newVal ) |
Rate changed.
oldVal | Old value. |
newVal | New value. |
Definition at line 88 of file wifi-manager-example.cc.
References g_intervalRate, and NS_LOG_DEBUG.
double g_intervalBytes = 0 |
Bytes received in an interval.
Definition at line 66 of file wifi-manager-example.cc.
Referenced by ChangeSignalAndReportRate(), and PacketRx().
uint64_t g_intervalRate = 0 |
Rate in an interval.
Definition at line 67 of file wifi-manager-example.cc.
Referenced by ChangeSignalAndReportRate(), and RateChange().