A Discrete-Event Network Simulator
API
wifi-power-adaptation-interference.cc File Reference
#include "ns3/gnuplot.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/uinteger.h"
#include "ns3/double.h"
#include "ns3/log.h"
#include "ns3/yans-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/mobility-helper.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-address-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/on-off-helper.h"
#include "ns3/yans-wifi-channel.h"
#include "ns3/wifi-net-device.h"
#include "ns3/wifi-mac.h"
#include "ns3/wifi-mac-header.h"
#include "ns3/flow-monitor-helper.h"
#include "ns3/ipv4-flow-classifier.h"
+ Include dependency graph for wifi-power-adaptation-interference.cc:

Go to the source code of this file.

Classes

class  NodeStatistics
 

Functions

void PowerCallback (std::string path, double oldPower, double newPower, Mac48Address dest)
 
void RateCallback (std::string path, DataRate oldRate, DataRate newRate, Mac48Address dest)
 

Variables

static const uint32_t packetSize = 1420
 

Detailed Description

Usage

$ ./waf –run "wifi-power-adaptation-interference [Program Options]"

Program Options

–manager
PRC Manager [ns3::ParfWifiManager]
–rtsThreshold
RTS threshold [2346]
–outputFileName
Output filename [parf]
–simuTime
Total simulation time (sec) [100]
–maxPower
Maximum available transmission level (dbm). [17]
–minPower
Minimum available transmission level (dbm). [0]
–powerLevels
Number of transmission power levels available between TxPowerStart and TxPowerEnd included. [18]
–AP1_x
Position of AP1 in x coordinate [0]
–AP1_y
Position of AP1 in y coordinate [0]
–STA1_x
Position of STA1 in x coordinate [10]
–STA1_y
Position of STA1 in y coordinate [0]
–AP2_x
Position of AP2 in x coordinate [200]
–AP2_y
Position of AP2 in y coordinate [0]
–STA2_x
Position of STA2 in x coordinate [180]
–STA2_y
Position of STA2 in y coordinate [0]

Definition in file wifi-power-adaptation-interference.cc.

Function Documentation

◆ PowerCallback()

void PowerCallback ( std::string  path,
double  oldPower,
double  newPower,
Mac48Address  dest 
)

Definition at line 324 of file wifi-power-adaptation-interference.cc.

References ns3::Simulator::Now(), and NS_LOG_INFO.

+ Here is the call graph for this function:

◆ RateCallback()

void RateCallback ( std::string  path,
DataRate  oldRate,
DataRate  newRate,
Mac48Address  dest 
)

Definition at line 329 of file wifi-power-adaptation-interference.cc.

References ns3::Simulator::Now(), and NS_LOG_INFO.

+ Here is the call graph for this function:

Variable Documentation

◆ packetSize

const uint32_t packetSize = 1420
static

Definition at line 84 of file wifi-power-adaptation-interference.cc.