#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>
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 (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 | |
$ ./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 105 of file three-gpp-v2v-channel-example.cc.
References ns3::PropagationLossModel::CalcRxPower(), ns3::PhasedArraySpectrumPropagationLossModel::CalcRxPowerSpectralDensity(), f(), ns3::Time::GetSeconds(), m_condModel, m_propagationLossModel, m_spectrumLossModel, ns3::Simulator::Now(), NS_LOG_DEBUG, and ns3::Sum().
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 82 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 154 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.
Here is the call graph for this function:
|
static |
the ChannelConditionModel object
Definition at line 58 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the PropagationLossModel object
Definition at line 55 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().
|
static |
the SpectrumPropagationLossModel object
Definition at line 57 of file three-gpp-v2v-channel-example.cc.
Referenced by ComputeSnr().