5G-LENA
nr-v3.0-29-g83cc959
The 5G/NR module for the ns-3 simulator
|
Generate "Real" beamforming vectors This class is inherited by all algorithms that do not assume the perfect knowledge of the channel, but instead are performing the estimation of the channel based on measurements, e.g., based on SRS SINR/SNR measurement. More...
#include "realistic-beamforming-algorithm.h"
Classes | |
struct | DelayedUpdateInfo |
struct | TriggerEventConf |
Public Types | |
typedef Callback< void, const Ptr< NrSpectrumPhy > &, const Ptr< NrSpectrumPhy > & > | RealisticBfHelperCallback |
RunTask callback will be triggered when the event for updating the beamforming vectors occurs The parameters are: gnb spectrum phy, ue spectrum phy. | |
Public Member Functions | |
RealisticBeamformingAlgorithm () | |
constructor | |
~RealisticBeamformingAlgorithm () override | |
destructor | |
int64_t | AssignStreams (int64_t stream) |
Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned. More... | |
virtual BeamformingVectorPair | GetBeamformingVectors () |
Function that generates the beamforming vectors for a pair of communicating devices by using the direct-path beamforming vector for gNB and quasi-omni beamforming vector for UEs. More... | |
double | GetBeamSearchAngleStep () const |
void | Install (const Ptr< NrSpectrumPhy > &gnbSpectrumPhy, const Ptr< NrSpectrumPhy > &ueSpectrumPhy, const Ptr< NrMacScheduler > &scheduler) |
void | NotifySrsReport (uint16_t cellId, uint16_t rnti, double srsReport) |
Saves SRS report (SNR or SINR depending on the configuration) More... | |
void | NotifySrsSinrReport (uint16_t cellId, uint16_t rnti, double srsSinr) |
Saves SRS SINR report. More... | |
void | NotifySrsSnrReport (uint16_t cellId, uint16_t rnti, double srsSnr) |
Saves SRS SNR report. More... | |
void | SetBeamSearchAngleStep (double beamSearchAngleStep) |
Sets the value of BeamSearchAngleStep attribute. More... | |
void | SetUseSnrSrs (bool v) |
bool | UseSnrSrs () const |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type id. More... | |
Generate "Real" beamforming vectors This class is inherited by all algorithms that do not assume the perfect knowledge of the channel, but instead are performing the estimation of the channel based on measurements, e.g., based on SRS SINR/SNR measurement.
RealisticBeamformingAlgorithm purpose is to generate beams for the pair of communicating devices based on the SRS measurements. Differently from IdealBeamformingAlgorithm this type of algorithm does not assume a perfect knowledge of the channel. It instead estimates the long-term fast fading channel component based on the received SRS. Accordingly, this approach could be used with any beamforming algorithm that makes use of the channel estimation, e.g., beam search method (e.g., such as the one implemented in CellScanBeamforming class). Note that the LOS type of method (e.g., such as the one implemented in DirectPathBeamforming class) does not use the channel matrix, but instead the angles of arrival and departure of the LOS path, and so, the proposed method is not valid for it. Currently, it is only compatible with the beam search method."
Definition at line 50 of file realistic-beamforming-algorithm.h.
int64_t ns3::RealisticBeamformingAlgorithm::AssignStreams | ( | int64_t | stream | ) |
Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.
stream | the first stream index to use |
Definition at line 46 of file realistic-beamforming-algorithm.cc.
|
virtual |
Function that generates the beamforming vectors for a pair of communicating devices by using the direct-path beamforming vector for gNB and quasi-omni beamforming vector for UEs.
Definition at line 273 of file realistic-beamforming-algorithm.cc.
References ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::channelMatrix, ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::srsSinr, and ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::updateTime.
double ns3::RealisticBeamformingAlgorithm::GetBeamSearchAngleStep | ( | ) | const |
Definition at line 115 of file realistic-beamforming-algorithm.cc.
Referenced by GetTypeId().
|
static |
Get the type id.
Definition at line 58 of file realistic-beamforming-algorithm.cc.
References GetBeamSearchAngleStep(), and SetBeamSearchAngleStep().
Referenced by ns3::RealisticBeamformingHelper::SetBeamformingMethod(), and ns3::LenaV2Utils::SetLenaV2SimulatorParameters().
void ns3::RealisticBeamformingAlgorithm::NotifySrsReport | ( | uint16_t | cellId, |
uint16_t | rnti, | ||
double | srsReport | ||
) |
Saves SRS report (SNR or SINR depending on the configuration)
cellId | the cell ID |
rnti | the RNTI |
srsReport | the SRS report which can be SNR or SIN depending on the configuration |
Definition at line 153 of file realistic-beamforming-algorithm.cc.
References ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::channelMatrix, ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::srsSinr, and ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::updateTime.
Referenced by NotifySrsSinrReport(), and NotifySrsSnrReport().
void ns3::RealisticBeamformingAlgorithm::NotifySrsSinrReport | ( | uint16_t | cellId, |
uint16_t | rnti, | ||
double | srsSinr | ||
) |
Saves SRS SINR report.
cellId | the cell ID |
rnti | the RNTI of the UE |
srsSinr | the SINR report for the received SRS |
Definition at line 133 of file realistic-beamforming-algorithm.cc.
References NotifySrsReport().
Referenced by ns3::RealisticBeamformingHelper::AddBeamformingTask().
void ns3::RealisticBeamformingAlgorithm::NotifySrsSnrReport | ( | uint16_t | cellId, |
uint16_t | rnti, | ||
double | srsSnr | ||
) |
Saves SRS SNR report.
cellId | the cell ID |
rnti | the RNTI |
srsSnr | the SRS SNR report |
Definition at line 143 of file realistic-beamforming-algorithm.cc.
References NotifySrsReport().
Referenced by ns3::RealisticBeamformingHelper::AddBeamformingTask().
void ns3::RealisticBeamformingAlgorithm::SetBeamSearchAngleStep | ( | double | beamSearchAngleStep | ) |
Sets the value of BeamSearchAngleStep attribute.
beamSearchAngleStep | the beam search angle step value |
Definition at line 109 of file realistic-beamforming-algorithm.cc.
Referenced by GetTypeId().