A Discrete-Event Network Simulator
API
spectrum-ideal-phy-test.cc File Reference
#include <ns3/object.h>
#include <ns3/spectrum-interference.h>
#include <ns3/spectrum-error-model.h>
#include <ns3/log.h>
#include <ns3/test.h>
#include <ns3/simulator.h>
#include <ns3/packet.h>
#include <ns3/ptr.h>
#include <ns3/string.h>
#include <iostream>
#include <ns3/math.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 <string>
#include <iomanip>
#include <ns3/friis-spectrum-propagation-loss.h>
#include <ns3/propagation-delay-model.h>
#include <ns3/spectrum-helper.h>
#include <ns3/adhoc-aloha-noack-ideal-phy-helper.h>
#include <ns3/mobility-helper.h>
#include <ns3/data-rate.h>
#include <ns3/uinteger.h>
#include <ns3/packet-socket-helper.h>
#include <ns3/packet-socket-address.h>
#include <ns3/packet-socket-client.h>
#include <ns3/config.h>
+ Include dependency graph for spectrum-ideal-phy-test.cc:

Go to the source code of this file.

Classes

class  SpectrumIdealPhyTestCase
 Ideal Spectrum PHY Test. More...
 
class  SpectrumIdealPhyTestSuite
 Ideal Spectrum PHY TestSuite. More...
 

Functions

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

Variables

static double g_bandwidth = 20e6
 
static uint64_t g_rxBytes
 
static SpectrumIdealPhyTestSuite g_spectrumIdealPhyTestSuite
 Static variable for test initialization. More...
 

Function Documentation

◆ PhyRxEndOkTrace()

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

Definition at line 61 of file spectrum-ideal-phy-test.cc.

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

Referenced by SpectrumIdealPhyTestCase::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_bandwidth

double g_bandwidth = 20e6
static

◆ g_rxBytes

uint64_t g_rxBytes
static

Definition at line 57 of file spectrum-ideal-phy-test.cc.

Referenced by SpectrumIdealPhyTestCase::DoRun(), and PhyRxEndOkTrace().

◆ g_spectrumIdealPhyTestSuite

SpectrumIdealPhyTestSuite g_spectrumIdealPhyTestSuite
static

Static variable for test initialization.

Definition at line 272 of file spectrum-ideal-phy-test.cc.