![]() |
5G-LENA nr-v4.0-29-g6d8085cd
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 | |
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. | |
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. | |
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) | |
void | NotifySrsSinrReport (uint16_t cellId, uint16_t rnti, double srsSinr) |
Saves SRS SINR report. | |
void | NotifySrsSnrReport (uint16_t cellId, uint16_t rnti, double srsSnr) |
Saves SRS SNR report. | |
void | SetUseSnrSrs (bool v) |
bool | UseSnrSrs () const |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type id. | |
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."
Introspection did not find any typical Config paths.<br>
@section attr_544 Attributes
<ul>
<li><b>OversamplingFactor</b>: Samples per antenna row/column
<ul>
<li>Set with class: \ref ns3::UintegerValue</li>
<li>Underlying type: uint8_t 1:4</li>
<li>Initial value: 1</li>
<li>Flags: <span class="mlabel">construct </span><span class="mlabel">write </span><span class="mlabel">read </span></li>
</ul>
<li><b>UseSnrSrs</b>: Denotes whether the SRS measurement will be SNR or SINR. If FalseSINR is used, if True the SNR
<ul>
<li>Set with class: \ref ns3::BooleanValue</li>
<li>Underlying type: bool</li>
<li>Initial value: true</li>
<li>Flags: <span class="mlabel">construct </span><span class="mlabel">write </span><span class="mlabel">read No TraceSources are defined for this type.
Size of this type is 216 bytes (on a 64-bit architecture).
Definition at line 48 of file realistic-beamforming-algorithm.h.
typedef Callback<void, const Ptr<NrSpectrumPhy>&, const Ptr<NrSpectrumPhy>&> ns3::RealisticBeamformingAlgorithm::RealisticBfHelperCallback |
RunTask callback will be triggered when the event for updating the beamforming vectors occurs The parameters are: gnb spectrum phy, ue spectrum phy.
Definition at line 142 of file realistic-beamforming-algorithm.h.
ns3::RealisticBeamformingAlgorithm::RealisticBeamformingAlgorithm | ( | ) |
constructor
Definition at line 26 of file realistic-beamforming-algorithm.cc.
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 44 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 265 of file realistic-beamforming-algorithm.cc.
References ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::channelMatrix, ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::srsSinr, and ns3::RealisticBeamformingAlgorithm::DelayedUpdateInfo::updateTime.
|
static |
Get the type id.
Definition at line 63 of file realistic-beamforming-algorithm.cc.
Referenced by ns3::RealisticBeamformingHelper::SetBeamformingMethod(), and ns3::LenaV2Utils::SetLenaV2SimulatorParameters().
void ns3::RealisticBeamformingAlgorithm::Install | ( | const Ptr< NrSpectrumPhy > & | gnbSpectrumPhy, |
const Ptr< NrSpectrumPhy > & | ueSpectrumPhy, | ||
const Ptr< NrMacScheduler > & | scheduler | ||
) |
Definition at line 32 of file realistic-beamforming-algorithm.cc.
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 145 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 125 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 135 of file realistic-beamforming-algorithm.cc.
References NotifySrsReport().
Referenced by ns3::RealisticBeamformingHelper::AddBeamformingTask().
void ns3::RealisticBeamformingAlgorithm::SetUseSnrSrs | ( | bool | v | ) |
Definition at line 113 of file realistic-beamforming-algorithm.cc.
bool ns3::RealisticBeamformingAlgorithm::UseSnrSrs | ( | ) | const |
Definition at line 119 of file realistic-beamforming-algorithm.cc.