5G-LENA nr-v3.3-81-g75c7590d
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
ns3::NrStatsCalculator Class Reference

#include "nr-stats-calculator.h"

+ Inheritance diagram for ns3::NrStatsCalculator:
+ Collaboration diagram for ns3::NrStatsCalculator:

Public Member Functions

 NrStatsCalculator ()
 
 ~NrStatsCalculator () override
 
bool ExistsCellIdPath (std::string path)
 
bool ExistsImsiPath (std::string path)
 
uint16_t GetCellIdPath (std::string path)
 
std::string GetDlOutputFilename ()
 
uint64_t GetImsiPath (std::string path)
 
std::string GetUlOutputFilename ()
 
void SetCellIdPath (std::string path, uint16_t cellId)
 
void SetDlOutputFilename (std::string outputFilename)
 
void SetImsiPath (std::string path, uint64_t imsi)
 
void SetUlOutputFilename (std::string outputFilename)
 

Static Public Member Functions

static TypeId GetTypeId ()
 

Static Protected Member Functions

static uint16_t FindCellIdFromGnbMac (std::string path, uint16_t rnti)
 
static uint16_t FindCellIdFromGnbRlcPath (std::string path)
 
static uint64_t FindImsiFromGnbMac (std::string path, uint16_t rnti)
 
static uint64_t FindImsiFromGnbRlcPath (std::string path)
 
static uint64_t FindImsiFromNrUeNetDevice (std::string path)
 

Detailed Description

Base class for ***StatsCalculator classes. Provides basic functionality to parse and store IMSI and CellId. Also stores names of output files.

Introspection did not find any typical Config paths.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 216 bytes (on a 64-bit architecture).

Definition at line 24 of file nr-stats-calculator.h.

Constructor & Destructor Documentation

◆ NrStatsCalculator()

ns3::NrStatsCalculator::NrStatsCalculator ( )

Constructor

Definition at line 21 of file nr-stats-calculator.cc.

◆ ~NrStatsCalculator()

ns3::NrStatsCalculator::~NrStatsCalculator ( )
override

Destructor

Definition at line 28 of file nr-stats-calculator.cc.

Member Function Documentation

◆ ExistsCellIdPath()

bool ns3::NrStatsCalculator::ExistsCellIdPath ( std::string  path)

Checks if there is an already stored cell id for the given path

Parameters
pathPath in the attribute system to check
Returns
true if the path exists, false otherwise

Definition at line 87 of file nr-stats-calculator.cc.

◆ ExistsImsiPath()

bool ns3::NrStatsCalculator::ExistsImsiPath ( std::string  path)

Checks if there is an already stored IMSI for the given path

Parameters
pathPath in the attribute system to check
Returns
true if the path exists, false otherwise

Definition at line 68 of file nr-stats-calculator.cc.

◆ FindCellIdFromGnbMac()

uint16_t ns3::NrStatsCalculator::FindCellIdFromGnbMac ( std::string  path,
uint16_t  rnti 
)
staticprotected

Retrieves CellId from gNB MAC path in the attribute system

Parameters
pathPath in the attribute system to get
rntiRNTI of UE for which CellId is needed
Returns
the CellId associated with the given path and RNTI

Definition at line 194 of file nr-stats-calculator.cc.

References FindCellIdFromGnbRlcPath().

+ Here is the call graph for this function:

◆ FindCellIdFromGnbRlcPath()

uint16_t ns3::NrStatsCalculator::FindCellIdFromGnbRlcPath ( std::string  path)
staticprotected

Retrieves CellId from gNB RLC path in the attribute system

Parameters
pathPath in the attribute system to get
Returns
the CellId associated with the given path

Definition at line 155 of file nr-stats-calculator.cc.

References ns3::NrGnbNetDevice::GetCellId().

Referenced by ns3::NrMacSchedulingStats::DlSchedulingCallback(), FindCellIdFromGnbMac(), and ns3::NrMacSchedulingStats::UlSchedulingCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindImsiFromGnbMac()

uint64_t ns3::NrStatsCalculator::FindImsiFromGnbMac ( std::string  path,
uint16_t  rnti 
)
staticprotected

Retrieves IMSI from gNB MAC path in the attribute system

Parameters
pathPath in the attribute system to get
rntiRNTI of UE for which IMSI is needed
Returns
the IMSI associated with the given path and RNTI

Definition at line 179 of file nr-stats-calculator.cc.

References FindImsiFromGnbRlcPath().

+ Here is the call graph for this function:

◆ FindImsiFromGnbRlcPath()

uint64_t ns3::NrStatsCalculator::FindImsiFromGnbRlcPath ( std::string  path)
staticprotected

Retrieves IMSI from gnb RLC path in the attribute system

Parameters
pathPath in the attribute system to get
Returns
the IMSI associated with the given path

Definition at line 106 of file nr-stats-calculator.cc.

References ns3::NrUeManager::GetImsi().

Referenced by ns3::NrMacSchedulingStats::DlSchedulingCallback(), FindImsiFromGnbMac(), and ns3::NrMacSchedulingStats::UlSchedulingCallback().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindImsiFromNrUeNetDevice()

uint64_t ns3::NrStatsCalculator::FindImsiFromNrUeNetDevice ( std::string  path)
staticprotected

Retrieves IMSI from NrUeNetDevice path in the attribute system

Parameters
pathPath in the attribute system to get
Returns
the IMSI associated with the given path

Definition at line 131 of file nr-stats-calculator.cc.

References ns3::NrUeNetDevice::GetImsi().

+ Here is the call graph for this function:

◆ GetCellIdPath()

uint16_t ns3::NrStatsCalculator::GetCellIdPath ( std::string  path)

Retrieves the cell id information for the given path

Parameters
pathPath in the attribute system to get
Returns
the cell ID associated with the given path

Definition at line 100 of file nr-stats-calculator.cc.

◆ GetDlOutputFilename()

std::string ns3::NrStatsCalculator::GetDlOutputFilename ( )

Get the name of the file where the downlink statistics will be stored.

Returns
the name of the file where the downlink statistics will be stored

Definition at line 62 of file nr-stats-calculator.cc.

Referenced by ns3::NrMacSchedulingStats::GetDlOutputFilename().

+ Here is the caller graph for this function:

◆ GetImsiPath()

uint64_t ns3::NrStatsCalculator::GetImsiPath ( std::string  path)

Retrieves the imsi information for the given path

Parameters
pathPath in the attribute system to get
Returns
the IMSI associated with the given path

Definition at line 81 of file nr-stats-calculator.cc.

◆ GetTypeId()

TypeId ns3::NrStatsCalculator::GetTypeId ( )
static

Register this type.

Returns
The object TypeId.

Definition at line 34 of file nr-stats-calculator.cc.

◆ GetUlOutputFilename()

std::string ns3::NrStatsCalculator::GetUlOutputFilename ( )

Get the name of the file where the uplink statistics will be stored.

Returns
the name of the file where the uplink statistics will be stored

Definition at line 50 of file nr-stats-calculator.cc.

Referenced by ns3::NrMacSchedulingStats::GetUlOutputFilename().

+ Here is the caller graph for this function:

◆ SetCellIdPath()

void ns3::NrStatsCalculator::SetCellIdPath ( std::string  path,
uint16_t  cellId 
)

Stores the (path, cellId) pairs in a map

Parameters
pathPath in the attribute system to store
cellIdcell id value to store

Definition at line 93 of file nr-stats-calculator.cc.

◆ SetDlOutputFilename()

void ns3::NrStatsCalculator::SetDlOutputFilename ( std::string  outputFilename)

Set the name of the file where the downlink statistics will be stored.

Parameters
outputFilenamestring with the name of the file

Definition at line 56 of file nr-stats-calculator.cc.

Referenced by ns3::NrMacSchedulingStats::SetDlOutputFilename().

+ Here is the caller graph for this function:

◆ SetImsiPath()

void ns3::NrStatsCalculator::SetImsiPath ( std::string  path,
uint64_t  imsi 
)

Stores the (path, imsi) pairs in a map

Parameters
pathPath in the attribute system to store
imsiIMSI value to store

Definition at line 74 of file nr-stats-calculator.cc.

◆ SetUlOutputFilename()

void ns3::NrStatsCalculator::SetUlOutputFilename ( std::string  outputFilename)

Set the name of the file where the uplink statistics will be stored.

Parameters
outputFilenamestring with the name of the file

Definition at line 44 of file nr-stats-calculator.cc.

Referenced by ns3::NrMacSchedulingStats::SetUlOutputFilename().

+ Here is the caller graph for this function:

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