5G-LENA nr-v3.3-81-g75c7590d
The 5G/NR module for the ns-3 simulator
|
#include "nr-stats-calculator.h"
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) |
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.
ns3::NrStatsCalculator::NrStatsCalculator | ( | ) |
Constructor
Definition at line 21 of file nr-stats-calculator.cc.
|
override |
Destructor
Definition at line 28 of file nr-stats-calculator.cc.
bool ns3::NrStatsCalculator::ExistsCellIdPath | ( | std::string | path | ) |
Checks if there is an already stored cell id for the given path
path | Path in the attribute system to check |
Definition at line 87 of file nr-stats-calculator.cc.
bool ns3::NrStatsCalculator::ExistsImsiPath | ( | std::string | path | ) |
Checks if there is an already stored IMSI for the given path
path | Path in the attribute system to check |
Definition at line 68 of file nr-stats-calculator.cc.
|
staticprotected |
Retrieves CellId from gNB MAC path in the attribute system
path | Path in the attribute system to get |
rnti | RNTI of UE for which CellId is needed |
Definition at line 194 of file nr-stats-calculator.cc.
References FindCellIdFromGnbRlcPath().
|
staticprotected |
Retrieves CellId from gNB RLC path in the attribute system
path | Path in the attribute system to get |
Definition at line 155 of file nr-stats-calculator.cc.
References ns3::NrGnbNetDevice::GetCellId().
Referenced by ns3::NrMacSchedulingStats::DlSchedulingCallback(), FindCellIdFromGnbMac(), and ns3::NrMacSchedulingStats::UlSchedulingCallback().
|
staticprotected |
Retrieves IMSI from gNB MAC path in the attribute system
path | Path in the attribute system to get |
rnti | RNTI of UE for which IMSI is needed |
Definition at line 179 of file nr-stats-calculator.cc.
References FindImsiFromGnbRlcPath().
|
staticprotected |
Retrieves IMSI from gnb RLC path in the attribute system
path | Path in the attribute system to get |
Definition at line 106 of file nr-stats-calculator.cc.
References ns3::NrUeManager::GetImsi().
Referenced by ns3::NrMacSchedulingStats::DlSchedulingCallback(), FindImsiFromGnbMac(), and ns3::NrMacSchedulingStats::UlSchedulingCallback().
|
staticprotected |
Retrieves IMSI from NrUeNetDevice path in the attribute system
path | Path in the attribute system to get |
Definition at line 131 of file nr-stats-calculator.cc.
References ns3::NrUeNetDevice::GetImsi().
uint16_t ns3::NrStatsCalculator::GetCellIdPath | ( | std::string | path | ) |
Retrieves the cell id information for the given path
path | Path in the attribute system to get |
Definition at line 100 of file nr-stats-calculator.cc.
std::string ns3::NrStatsCalculator::GetDlOutputFilename | ( | ) |
Get 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().
uint64_t ns3::NrStatsCalculator::GetImsiPath | ( | std::string | path | ) |
Retrieves the imsi information for the given path
path | Path in the attribute system to get |
Definition at line 81 of file nr-stats-calculator.cc.
|
static |
std::string ns3::NrStatsCalculator::GetUlOutputFilename | ( | ) |
Get 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().
void ns3::NrStatsCalculator::SetCellIdPath | ( | std::string | path, |
uint16_t | cellId | ||
) |
Stores the (path, cellId) pairs in a map
path | Path in the attribute system to store |
cellId | cell id value to store |
Definition at line 93 of file nr-stats-calculator.cc.
void ns3::NrStatsCalculator::SetDlOutputFilename | ( | std::string | outputFilename | ) |
Set the name of the file where the downlink statistics will be stored.
outputFilename | string with the name of the file |
Definition at line 56 of file nr-stats-calculator.cc.
Referenced by ns3::NrMacSchedulingStats::SetDlOutputFilename().
void ns3::NrStatsCalculator::SetImsiPath | ( | std::string | path, |
uint64_t | imsi | ||
) |
Stores the (path, imsi) pairs in a map
path | Path in the attribute system to store |
imsi | IMSI value to store |
Definition at line 74 of file nr-stats-calculator.cc.
void ns3::NrStatsCalculator::SetUlOutputFilename | ( | std::string | outputFilename | ) |
Set the name of the file where the uplink statistics will be stored.
outputFilename | string with the name of the file |
Definition at line 44 of file nr-stats-calculator.cc.
Referenced by ns3::NrMacSchedulingStats::SetUlOutputFilename().