A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
three-gpp-channel-consistency-example.cc File Reference
#include "ns3/buildings-module.h"
#include "ns3/core-module.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/spectrum-signal-parameters.h"
#include "ns3/three-gpp-channel-model.h"
#include "ns3/three-gpp-propagation-loss-model.h"
#include "ns3/three-gpp-spectrum-propagation-loss-model.h"
#include "ns3/uniform-planar-array.h"
#include <fstream>
Include dependency graph for three-gpp-channel-consistency-example.cc:

Go to the source code of this file.

Classes

struct  ComputeSnrParams
 A structure that holds the parameters for the ComputeSnr function. More...

Functions

static void ComputeSnr (const ComputeSnrParams &params)
 Computes the SNR.
static void CreateQuasiOmniBf (Ptr< PhasedArrayModel > antenna)
 Set QuasiOmni beamforming vector to the antenna array.
void PrintGnuplottableBuildingListToFile (std::string filename)
 Generates a GNU-plottable file representing the buildings deployed in the scenario.

Variables

static Ptr< ChannelConditionModelm_condModel
 the ChannelConditionModel object
static Ptr< ThreeGppPropagationLossModelm_propagationLossModel
 the log component
static Ptr< ThreeGppSpectrumPropagationLossModelm_spectrumLossModel
 the SpectrumPropagationLossModel object

Function Documentation

◆ ComputeSnr()

void ComputeSnr ( const ComputeSnrParams & params)
static

Computes the SNR.

Parameters
paramsA structure that holds a bunch of parameters needed by ComputeSnr function to calculate the average SNR

Definition at line 160 of file three-gpp-channel-consistency-example.cc.

References ns3::Create(), ns3::Time::GetSeconds(), m_condModel, m_propagationLossModel, m_spectrumLossModel, ns3::Simulator::Now(), and ns3::Sum().

Here is the call graph for this function:

◆ CreateQuasiOmniBf()

void CreateQuasiOmniBf ( Ptr< PhasedArrayModel > antenna)
static

Set QuasiOmni beamforming vector to the antenna array.

Parameters
antennathe antenna array to which will be set quasi omni beamforming vector

Definition at line 108 of file three-gpp-channel-consistency-example.cc.

◆ PrintGnuplottableBuildingListToFile()

void PrintGnuplottableBuildingListToFile ( std::string filename)

Generates a GNU-plottable file representing the buildings deployed in the scenario.

Parameters
filenamethe name of the output file

Definition at line 201 of file three-gpp-channel-consistency-example.cc.

References ns3::BuildingList::Begin(), ns3::BuildingList::End(), NS_LOG_ERROR, ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.

Here is the call graph for this function:

Variable Documentation

◆ m_condModel

Ptr<ChannelConditionModel> m_condModel
static

the ChannelConditionModel object

Definition at line 87 of file three-gpp-channel-consistency-example.cc.

◆ m_propagationLossModel

Ptr<ThreeGppPropagationLossModel> m_propagationLossModel
static

the log component

the PropagationLossModel object

Definition at line 83 of file three-gpp-channel-consistency-example.cc.

◆ m_spectrumLossModel

Ptr<ThreeGppSpectrumPropagationLossModel> m_spectrumLossModel
static