A Discrete-Event Network Simulator
API
adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc File Reference
#include <iostream>
#include <ns3/core-module.h>
#include <ns3/network-module.h>
#include <ns3/spectrum-model-ism2400MHz-res1MHz.h>
#include <ns3/spectrum-model-300kHz-300GHz-log.h>
#include <ns3/wifi-spectrum-value-helper.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/waveform-generator.h>
#include <ns3/spectrum-analyzer.h>
#include <ns3/log.h>
#include <string>
#include <iomanip>
#include <ns3/friis-spectrum-propagation-loss.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/mobility-module.h>
#include <ns3/spectrum-helper.h>
#include <ns3/applications-module.h>
#include <ns3/adhoc-aloha-noack-ideal-phy-helper.h>
+ Include dependency graph for adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc:

Go to the source code of this file.

Classes

class  GlobalPathlossDatabase
 Store the last pathloss value for each TX-RX pair. More...
 

Functions

void PhyRxEndOkTrace (std::string context, Ptr< const Packet > p)
 

Variables

static uint64_t g_rxBytes
 
static bool g_verbose = false
 

Detailed Description

Usage

$ ./ns3 run "adhoc-aloha-ideal-phy-matrix-propagation-loss-model [Program Options]"

Program Options

–verbose
Print trace information if true [false]
–lossDb
link loss in dB [130]
–txPowerW
txPower in Watts [0.1]
–phyRate
PHY rate in bps [500000]
–pktSize
packet size in bytes [1000]
–simDuration
duration of the simulation in seconds [0.5]
–channelType
which SpectrumChannel implementation to be used [ns3::SingleModelSpectrumChannel]

Definition in file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

Function Documentation

◆ PhyRxEndOkTrace()

void PhyRxEndOkTrace ( std::string  context,
Ptr< const Packet p 
)

Definition at line 52 of file adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc.

References g_rxBytes, g_verbose, and ns3::Packet::GetSize().

+ Here is the call graph for this function:

Variable Documentation

◆ g_rxBytes

uint64_t g_rxBytes
static

◆ g_verbose

bool g_verbose = false
static