#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-spectrum-propagation-loss-model.h"
#include "ns3/three-gpp-v2v-propagation-loss-model.h"
#include "ns3/uniform-planar-array.h"
#include <fstream>
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 ¶ms) |
Compute the average SNR. | |
static void | DoBeamforming (Ptr< NetDevice > thisDevice, Ptr< PhasedArrayModel > thisAntenna, Ptr< NetDevice > otherDevice) |
Perform the beamforming using the DFT beamforming method. | |
void | PrintGnuplottableBuildingListToFile (std::string filename) |
Generates a GNU-plottable file representing the buildings deployed in the scenario. | |
Variables | |
static Ptr< ChannelConditionModel > | m_condModel |
the ChannelConditionModel object | |
static Ptr< ThreeGppPropagationLossModel > | m_propagationLossModel |
the PropagationLossModel object | |
static Ptr< ThreeGppSpectrumPropagationLossModel > | m_spectrumLossModel |
the SpectrumPropagationLossModel object | |
|
static |
Compute the average SNR.
params | A structure that holds a bunch of parameters needed by ComputSnr function to calculate the average SNR |
Definition at line 94 of file three-gpp-v2v-channel-example.cc.
References ns3::Create(), ns3::Time::GetSeconds(), m_condModel, m_propagationLossModel, m_spectrumLossModel, ns3::Simulator::Now(), NS_LOG_DEBUG, and ns3::Sum().
|
static |
Perform the beamforming using the DFT beamforming method.
thisDevice | the device performing the beamforming |
thisAntenna | the antenna object associated to thisDevice |
otherDevice | the device towards which point the beam |
Definition at line 71 of file three-gpp-v2v-channel-example.cc.
void PrintGnuplottableBuildingListToFile | ( | std::string | filename | ) |
Generates a GNU-plottable file representing the buildings deployed in the scenario.
filename | the name of the output file |
Definition at line 144 of file three-gpp-v2v-channel-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.
|
static |
the ChannelConditionModel object
Definition at line 47 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the PropagationLossModel object
Definition at line 44 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the SpectrumPropagationLossModel object
Definition at line 46 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().