5G-LENA
nr-v3.0-29-g83cc959
The 5G/NR module for the ns-3 simulator
|
#include "nr-bearer-stats-connector.h"
Public Member Functions | |
NrBearerStatsConnector () | |
Constructor. | |
void | EnablePdcpStats (Ptr< NrBearerStatsBase > pdcpStats) |
void | EnableRlcStats (Ptr< NrBearerStatsBase > rlcStats) |
void | EnsureConnected () |
Ptr< NrBearerStatsBase > | GetPdcpStats () |
Ptr< NrBearerStatsBase > | GetRlcStats () |
Static Public Member Functions | |
static void | NotifyConnectionReconfigurationEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
static void | NotifyConnectionReconfigurationUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
static void | NotifyConnectionSetupUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
static void | NotifyHandoverEndOkEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
static void | NotifyHandoverEndOkUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
static void | NotifyHandoverStartEnb (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
static void | NotifyHandoverStartUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti, uint16_t targetCellId) |
static void | NotifyNewUeContextEnb (NrBearerStatsConnector *c, std::string context, uint16_t cellid, uint16_t rnti) |
static void | NotifyRandomAccessSuccessfulUe (NrBearerStatsConnector *c, std::string context, uint64_t imsi, uint16_t cellid, uint16_t rnti) |
Friends | |
bool | operator< (const CellIdRnti &a, const CellIdRnti &b) |
This class is very useful when user needs to collect statistics from PDCD and RLC. It automatically connects NrBearerStatsCalculator to appropriate trace sinks. Usually user do not use this class. All he/she needs to to do is to call: LteHelper::EnablePdcpTraces() and/or LteHelper::EnableRlcTraces().
Definition at line 33 of file nr-bearer-stats-connector.h.
void ns3::NrBearerStatsConnector::EnablePdcpStats | ( | Ptr< NrBearerStatsBase > | pdcpStats | ) |
Enables trace sinks for PDCP layer.
pdcpStats | statistics calculator for PDCP layer |
Definition at line 138 of file nr-bearer-stats-connector.cc.
References EnsureConnected().
Referenced by ns3::NrHelper::EnablePdcpE2eTraces(), and ns3::NrHelper::EnablePdcpSimpleTraces().
void ns3::NrBearerStatsConnector::EnableRlcStats | ( | Ptr< NrBearerStatsBase > | rlcStats | ) |
Enables trace sinks for RLC layer.
rlcStats | statistics calculator for RLC layer |
Definition at line 131 of file nr-bearer-stats-connector.cc.
References EnsureConnected().
Referenced by ns3::NrHelper::EnableRlcE2eTraces(), and ns3::NrHelper::EnableRlcSimpleTraces().
void ns3::NrBearerStatsConnector::EnsureConnected | ( | ) |
Connects trace sinks to appropriate trace sources
Definition at line 145 of file nr-bearer-stats-connector.cc.
References NotifyConnectionReconfigurationEnb(), NotifyConnectionReconfigurationUe(), NotifyHandoverEndOkEnb(), NotifyHandoverEndOkUe(), NotifyHandoverStartEnb(), NotifyHandoverStartUe(), NotifyNewUeContextEnb(), and NotifyRandomAccessSuccessfulUe().
Referenced by EnablePdcpStats(), and EnableRlcStats().
Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetPdcpStats | ( | ) |
Definition at line 504 of file nr-bearer-stats-connector.cc.
Referenced by ns3::NrHelper::GetPdcpStatsCalculator().
Ptr< NrBearerStatsBase > ns3::NrBearerStatsConnector::GetRlcStats | ( | ) |
Definition at line 498 of file nr-bearer-stats-connector.cc.
Referenced by ns3::NrHelper::GetRlcStatsCalculator().
|
static |
Function hooked to ConnectionReconfiguration trace source at eNB RRC, which is fired upon RRC connection reconfiguration
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 234 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to ConnectionReconfiguration trace source at UE RRC, which is fired upon RRC connection reconfiguration
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 194 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Sink connected source of UE Connection Setup trace. Not used.
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 184 of file nr-bearer-stats-connector.cc.
|
static |
Function hooked to HandoverEndOk trace source at eNB RRC, which is fired upon successful termination of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 255 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at UE RRC, which is fired upon successful termination of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 215 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at eNB RRC, which is fired upon start of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti | |
targetCellId |
Definition at line 244 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to HandoverStart trace source at UE RRC, which is fired upon start of a handover procedure
c | |
context | |
imsi | |
cellid | |
rnti | |
targetCellId |
Definition at line 204 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to NewUeContext trace source at eNB RRC, which is fired upon creation of a new UE context
c | |
context | |
cellid | |
rnti |
Definition at line 225 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
static |
Function hooked to RandomAccessSuccessful trace source at UE RRC, which is fired upon successful completion of the random access procedure
c | |
context | |
imsi | |
cellid | |
rnti |
Definition at line 174 of file nr-bearer-stats-connector.cc.
Referenced by EnsureConnected().
|
friend |
Less than operator for CellIdRnti, because it is used as key in map
Definition at line 23 of file nr-bearer-stats-connector.cc.