lte: Move UE_MEASUREMENT_REPORT_DELAY to .cc files for MSVC compatibility

This commit is contained in:
Gabriel Ferreira
2025-05-20 22:41:40 +02:00
committed by Jared Ivey
parent ddd3db65e2
commit f702b9cb62
3 changed files with 18 additions and 19 deletions

View File

@@ -32,6 +32,22 @@
namespace ns3
{
/**
* @brief Artificial delay of UE measurements procedure.
*
* i.e. the period between the time layer-1-filtered measurements from PHY
* layer is received and the earliest time the actual measurement report
* submission to the serving cell is invoked.
*
* This delay exists because of racing condition between several UE measurements
* functions which happen to be scheduled at the same time. The delay ensures
* that:
* - measurements (e.g., layer-3 filtering) are always performed before
* reporting, thus the latter always use the latest measured RSRP and RSRQ;
* and
* - time-to-trigger check is always performed before the reporting, so there
* would still be chance for it to cancel the reporting if necessary.
*/
const Time UE_MEASUREMENT_REPORT_DELAY = MicroSeconds(1);
NS_LOG_COMPONENT_DEFINE("LteUeRrc");

View File

@@ -34,25 +34,6 @@
namespace ns3
{
/**
* @brief Artificial delay of UE measurements procedure.
*
* i.e. the period between the time layer-1-filtered measurements from PHY
* layer is received and the earliest time the actual measurement report
* submission to the serving cell is invoked.
*
* This delay exists because of racing condition between several UE measurements
* functions which happen to be scheduled at the same time. The delay ensures
* that:
* - measurements (e.g., layer-3 filtering) are always performed before
* reporting, thus the latter always use the latest measured RSRP and RSRQ;
* and
* - time-to-trigger check is always performed before the reporting, so there
* would still be chance for it to cancel the reporting if necessary.
*/
LTE_EXPORT extern const Time UE_MEASUREMENT_REPORT_DELAY;
class LteRlc;
class LteMacSapProvider;
class LteUeCmacSapUser;

View File

@@ -42,6 +42,8 @@ using namespace ns3;
NS_LOG_COMPONENT_DEFINE("LteUeMeasurementsTest");
const Time UE_MEASUREMENT_REPORT_DELAY = MicroSeconds(1);
// ===== LTE-UE-MEASUREMENTS TEST SUITE ==================================== //
void