5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
NrUeMeasurementsTestCase Class Reference

Test that UE measurements calculation works properly in a scenario with 2 eNodeBs and 2UEs. Test that RSRP and RSRQ of the serving cell and of the neighbor cell correspond to the reference values. More...

#include "nr-test-ue-measurements.h"

+ Inheritance diagram for NrUeMeasurementsTestCase:
+ Collaboration diagram for NrUeMeasurementsTestCase:

Public Member Functions

 NrUeMeasurementsTestCase (std::string name, double d1, double d2, double rsrpDbmUe1, double rsrpDbmUe2, double rsrqDbUe1, double rsrqDbUe2)
 
void RecvMeasurementReport (uint64_t imsi, uint16_t cellId, uint16_t rnti, NrRrcSap::MeasurementReport meas)
 
void ReportUeMeasurements (uint16_t rnti, uint16_t cellId, double rsrp, double rsrq, bool servingCell)
 

Detailed Description

Test that UE measurements calculation works properly in a scenario with 2 eNodeBs and 2UEs. Test that RSRP and RSRQ of the serving cell and of the neighbor cell correspond to the reference values.

Definition at line 52 of file nr-test-ue-measurements.h.

Constructor & Destructor Documentation

◆ NrUeMeasurementsTestCase()

NrUeMeasurementsTestCase::NrUeMeasurementsTestCase ( std::string  name,
double  d1,
double  d2,
double  rsrpDbmUe1,
double  rsrpDbmUe2,
double  rsrqDbUe1,
double  rsrqDbUe2 
)

Constructor

Parameters
namethe reference name
d1distance between UE and gNB node pair
d2distance between UE and other gNB node
rsrpDbmUe1RSRP in dBm UE 1
rsrpDbmUe2RSRP in dBm UE 2
rsrqDbUe1RSRQ in dBm UE 1
rsrqDbUe2RSRQ in dBm UE 2

Definition at line 235 of file nr-test-ue-measurements.cc.

◆ ~NrUeMeasurementsTestCase()

NrUeMeasurementsTestCase::~NrUeMeasurementsTestCase ( )
override

Definition at line 253 of file nr-test-ue-measurements.cc.

Member Function Documentation

◆ RecvMeasurementReport()

void NrUeMeasurementsTestCase::RecvMeasurementReport ( uint64_t  imsi,
uint16_t  cellId,
uint16_t  rnti,
NrRrcSap::MeasurementReport  meas 
)

Reeive measurement report function

Parameters
imsithe IMSI
cellIdthe cell ID
rntithe RNTI
measNrRrcSap::MeasurementReport

Definition at line 377 of file nr-test-ue-measurements.cc.

References ns3::nr::EutranMeasurementMapping::Db2RsrqRange(), ns3::nr::EutranMeasurementMapping::Dbm2RsrpRange(), ns3::NrRrcSap::MeasResults::measResultPCell, ns3::NrRrcSap::MeasurementReport::measResults, ns3::NrRrcSap::MeasResultPCell::rsrpResult, and ns3::NrRrcSap::MeasResultPCell::rsrqResult.

+ Here is the call graph for this function:

◆ ReportUeMeasurements()

void NrUeMeasurementsTestCase::ReportUeMeasurements ( uint16_t  rnti,
uint16_t  cellId,
double  rsrp,
double  rsrq,
bool  servingCell 
)

Report UE measurements function

Parameters
rntithe RNTI
cellIdthe cell ID
rsrpthe RSRP
rsrqthe RSRQ
servingCellthe serving cell

Definition at line 347 of file nr-test-ue-measurements.cc.


The documentation for this class was generated from the following files: