#include "ns3/buildings-module.h"
#include "ns3/mobility-module.h"
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include <fstream>
#include "ns3/three-gpp-antenna-array-model.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"
Go to the source code of this file.
Functions | |
static void | ComputeSnr (Ptr< MobilityModel > txMob, Ptr< MobilityModel > rxMob, Ptr< const SpectrumValue > txPsd, double noiseFigure) |
Compute the average SNR. More... | |
static void | DoBeamforming (Ptr< NetDevice > thisDevice, Ptr< ThreeGppAntennaArrayModel > 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... | |
|
static |
Compute the average SNR.
txMob | the tx mobility model |
rxMob | the rx mobility model |
txPsd | the PSD of the transmitting signal |
noiseFigure | the noise figure in dB |
Definition at line 110 of file three-gpp-v2v-channel-example.cc.
References ns3::PropagationLossModel::CalcRxPower(), ns3::PhasedArraySpectrumPropagationLossModel::CalcRxPowerSpectralDensity(), f(), ns3::MobilityModel::GetPosition(), 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 64 of file three-gpp-v2v-channel-example.cc.
References ns3::NetDevice::GetNode(), ns3::Object::GetObject(), and GetPosition().
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 159 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 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().