From 1c5ee18f33a9e55dabfe9d1364ea91a5d5bc7114 Mon Sep 17 00:00:00 2001 From: Nicola Baldo Date: Mon, 20 Jun 2011 13:14:14 +0200 Subject: [PATCH] member variables of LenaHelper to follow naming convention --- src/lte/helper/lena-helper.cc | 34 +++++++++++++++++----------------- src/lte/helper/lena-helper.h | 4 ++-- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/lte/helper/lena-helper.cc b/src/lte/helper/lena-helper.cc index 910b15625..80e7d142d 100644 --- a/src/lte/helper/lena-helper.cc +++ b/src/lte/helper/lena-helper.cc @@ -63,8 +63,8 @@ LenaHelper::DoStart (void) Ptr ulPropagationModel = m_propagationModelFactory.Create (); m_downlinkChannel->AddSpectrumPropagationLossModel (dlPropagationModel); m_uplinkChannel->AddSpectrumPropagationLossModel (ulPropagationModel); - macStats = CreateObject (); - rlcStats = CreateObject (); + m_macStats = CreateObject (); + m_rlcStats = CreateObject (); Object::DoStart (); } @@ -388,7 +388,7 @@ void LenaHelper::EnableDlMacTraces (void) { Config::Connect ("/NodeList/0/DeviceList/0/LteEnbMac/DlScheduling", - MakeBoundCallback (&DlSchedulingCallback, macStats)); + MakeBoundCallback (&DlSchedulingCallback, m_macStats)); } void @@ -403,7 +403,7 @@ void LenaHelper::EnableUlMacTraces (void) { Config::Connect ("/NodeList/0/DeviceList/0/LteEnbMac/UlScheduling", - MakeBoundCallback (&UlSchedulingCallback, macStats)); + MakeBoundCallback (&UlSchedulingCallback, m_macStats)); } void @@ -460,44 +460,44 @@ FindImsiFromUeRlc (std::string path) void -DlTxPduCallback (Ptr rlcStats, std::string path, +DlTxPduCallback (Ptr m_rlcStats, std::string path, uint16_t rnti, uint8_t lcid, uint32_t packetSize) { uint64_t imsi = FindImsiFromEnbRlcPath (path); - rlcStats->DlTxPdu (imsi, rnti, lcid, packetSize); + m_rlcStats->DlTxPdu (imsi, rnti, lcid, packetSize); } void -DlRxPduCallback (Ptr rlcStats, std::string path, +DlRxPduCallback (Ptr m_rlcStats, std::string path, uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay) { uint64_t imsi = FindImsiFromUeRlc (path); - rlcStats->DlRxPdu (imsi, rnti, lcid, packetSize, delay); + m_rlcStats->DlRxPdu (imsi, rnti, lcid, packetSize, delay); } void LenaHelper::EnableDlRlcTraces (void) { Config::Connect ("/NodeList/*/DeviceList/*/LteEnbRrc/UeMap/*/RadioBearerMap/*/LteRlc/TxPDU", - MakeBoundCallback (&DlTxPduCallback, rlcStats)); + MakeBoundCallback (&DlTxPduCallback, m_rlcStats)); Config::Connect ("/NodeList/*/DeviceList/*/LteUeRrc/RlcMap/*/RxPDU", - MakeBoundCallback (&DlRxPduCallback, rlcStats)); + MakeBoundCallback (&DlRxPduCallback, m_rlcStats)); } void -UlTxPduCallback (Ptr rlcStats, std::string path, +UlTxPduCallback (Ptr m_rlcStats, std::string path, uint16_t rnti, uint8_t lcid, uint32_t packetSize) { uint64_t imsi = FindImsiFromUeRlc (path); - rlcStats->UlTxPdu (imsi, rnti, lcid, packetSize); + m_rlcStats->UlTxPdu (imsi, rnti, lcid, packetSize); } void -UlRxPduCallback (Ptr rlcStats, std::string path, +UlRxPduCallback (Ptr m_rlcStats, std::string path, uint16_t rnti, uint8_t lcid, uint32_t packetSize, uint64_t delay) { uint64_t imsi = FindImsiFromEnbRlcPath (path); - rlcStats->UlRxPdu (imsi, rnti, lcid, packetSize, delay); + m_rlcStats->UlRxPdu (imsi, rnti, lcid, packetSize, delay); } @@ -506,15 +506,15 @@ void LenaHelper::EnableUlRlcTraces (void) { Config::Connect ("/NodeList/*/DeviceList/*/LteUeRrc/RlcMap/*/TxPDU", - MakeBoundCallback (&UlTxPduCallback, rlcStats)); + MakeBoundCallback (&UlTxPduCallback, m_rlcStats)); Config::Connect ("/NodeList/0/DeviceList/*/LteEnbRrc/UeMap/*/RadioBearerMap/*/LteRlc/RxPDU", - MakeBoundCallback (&UlRxPduCallback, rlcStats)); + MakeBoundCallback (&UlRxPduCallback, m_rlcStats)); } Ptr LenaHelper::GetRlcStats (void) { - return rlcStats; + return m_rlcStats; } } // namespace ns3 diff --git a/src/lte/helper/lena-helper.h b/src/lte/helper/lena-helper.h index 892134806..1ec4e69f7 100644 --- a/src/lte/helper/lena-helper.h +++ b/src/lte/helper/lena-helper.h @@ -200,8 +200,8 @@ private: ObjectFactory m_schedulerFactory; ObjectFactory m_propagationModelFactory; - Ptr macStats; - Ptr rlcStats; + Ptr m_macStats; + Ptr m_rlcStats; };