A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
adhoc-aloha-ideal-phy-matrix-propagation-loss-model.cc File Reference
#include <ns3/adhoc-aloha-noack-ideal-phy-helper.h>
#include <ns3/applications-module.h>
#include <ns3/core-module.h>
#include <ns3/friis-spectrum-propagation-loss.h>
#include <ns3/ism-spectrum-value-helper.h>
#include <ns3/log.h>
#include <ns3/mobility-module.h>
#include <ns3/network-module.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/single-model-spectrum-channel.h>
#include <ns3/spectrum-analyzer.h>
#include <ns3/spectrum-helper.h>
#include <ns3/spectrum-model-300kHz-300GHz-log.h>
#include <ns3/spectrum-model-ism2400MHz-res1MHz.h>
#include <ns3/waveform-generator.h>
#include <iomanip>
#include <iostream>
#include <string>
+ 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)
 Trace for PHY Rx successful end.
 

Variables

static uint64_t g_rxBytes
 Rx bytes counter.
 
static bool g_verbose = false
 True if verbose output.
 

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 
)

Trace for PHY Rx successful end.

Parameters
contextThe context.
pThe packet.

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

References g_rxBytes, and g_verbose.

Variable Documentation

◆ g_rxBytes

uint64_t g_rxBytes
static

Rx bytes counter.

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

Referenced by PhyRxEndOkTrace().

◆ g_verbose

bool g_verbose = false
static

True if verbose output.

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

Referenced by PhyRxEndOkTrace().