#include "ns3/buildings-module.h"#include "ns3/mobility-module.h"#include "ns3/core-module.h"#include "ns3/network-module.h"#include <fstream>#include "ns3/uniform-planar-array.h"#include "ns3/three-gpp-spectrum-propagation-loss-model.h"#include "ns3/three-gpp-v2v-propagation-loss-model.h"#include "ns3/three-gpp-channel-model.h"
Include dependency graph for three-gpp-v2v-channel-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 (ComputeSnrParams ¶ms) |
| Compute the average SNR. More... | |
| static void | DoBeamforming (Ptr< NetDevice > thisDevice, Ptr< PhasedArrayModel > thisAntenna, Ptr< NetDevice > otherDevice) |
| Perform the beamforming using the DFT beamforming method. More... | |
| void | PrintGnuplottableBuildingListToFile (std::string filename) |
| Generates a GNU-plottable file representig the buildings deployed in the scenario. More... | |
Variables | |
| static Ptr< ChannelConditionModel > | m_condModel |
| the ChannelConditionModel object More... | |
| static Ptr< ThreeGppPropagationLossModel > | m_propagationLossModel |
| the PropagationLossModel object More... | |
| static Ptr< ThreeGppSpectrumPropagationLossModel > | m_spectrumLossModel |
| the SpectrumPropagationLossModel object More... | |
$ ./ns3 run "three-gpp-v2v-channel-example [Program Options]"
--frequency --txPow --noiseFigure --scenario Definition in file three-gpp-v2v-channel-example.cc.
|
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 120 of file three-gpp-v2v-channel-example.cc.
References ns3::PropagationLossModel::CalcRxPower(), ns3::PhasedArraySpectrumPropagationLossModel::CalcRxPowerSpectralDensity(), ns3::SpectrumValue::Copy(), f(), ns3::MobilityModel::GetPosition(), ns3::Time::GetSeconds(), ns3::SpectrumValue::GetSpectrumModel(), m_condModel, m_propagationLossModel, m_spectrumLossModel, ComputeSnrParams::noiseFigure, ns3::Now(), NS_LOG_DEBUG, ComputeSnrParams::rxAntenna, ComputeSnrParams::rxMob, ns3::Sum(), ComputeSnrParams::txAntenna, ComputeSnrParams::txMob, and ComputeSnrParams::txPsd.
Here is the call graph for this function:
|
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 100 of file three-gpp-v2v-channel-example.cc.
References ns3::PhasedArrayModel::GetBeamformingVector(), ns3::NetDevice::GetNode(), ns3::Object::GetObject(), GetPosition(), and ns3::PhasedArrayModel::SetBeamformingVector().
Here is the call graph for this function:| void PrintGnuplottableBuildingListToFile | ( | std::string | filename | ) |
Generates a GNU-plottable file representig the buildings deployed in the scenario.
| filename | the name of the output file |
Definition at line 169 of file three-gpp-v2v-channel-example.cc.
References NS_LOG_ERROR, ns3::Box::xMax, ns3::Box::xMin, ns3::Box::yMax, and ns3::Box::yMin.
|
static |
the ChannelConditionModel object
Definition at line 55 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the PropagationLossModel object
Definition at line 53 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the SpectrumPropagationLossModel object
Definition at line 54 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().