5G-LENA nr-v3.3-18-g7e4df5bb
The 5G/NR module for the ns-3 simulator
|
Class to collect and store the Resource Block statistics from a simulation. More...
#include "rb-output-stats.h"
Public Member Functions | |
RbOutputStats () | |
Constructor. | |
RbOutputStats () | |
Constructor. | |
void | EmptyCache () |
Force the cache write to disk, emptying the cache itself. | |
void | EmptyCache () |
Force the cache write to disk, emptying the cache itself. | |
void | SaveRbStats (const SfnSf &sfnSf, uint8_t sym, const std::vector< int > rbUsed, uint16_t bwpId, uint16_t cellId) |
Save the slot statistics. | |
void | SaveRbStats (const SfnSf &sfnSf, uint8_t sym, const std::vector< int > rbUsed, uint16_t bwpId, uint16_t cellId) |
Save the slot statistics. | |
void | SetDb (SQLiteOutput *db, const std::string &tableName="rbStats") |
Install the output database. | |
void | SetDb (SQLiteOutput *db, const std::string &tableName="rbStats") |
Install the output database. | |
Class to collect and store the Resource Block statistics from a simulation.
Definition at line 23 of file 3gpp-outdoor-calibration/rb-output-stats.h.
ns3::RbOutputStats::RbOutputStats | ( | ) |
Constructor.
Definition at line 13 of file 3gpp-outdoor-calibration/rb-output-stats.cc.
void ns3::RbOutputStats::EmptyCache | ( | ) |
Force the cache write to disk, emptying the cache itself.
Definition at line 69 of file 3gpp-outdoor-calibration/rb-output-stats.cc.
void ns3::RbOutputStats::SaveRbStats | ( | const SfnSf & | sfnSf, |
uint8_t | sym, | ||
const std::vector< int > | rbUsed, | ||
uint16_t | bwpId, | ||
uint16_t | cellId | ||
) |
Save the slot statistics.
[in] | sfnSf | Slot number |
[in] | sym | Symbol |
[in] | rbUsed | RB used |
Definition at line 44 of file 3gpp-outdoor-calibration/rb-output-stats.cc.
void ns3::RbOutputStats::SaveRbStats | ( | const SfnSf & | sfnSf, |
uint8_t | sym, | ||
const std::vector< int > | rbUsed, | ||
uint16_t | bwpId, | ||
uint16_t | cellId | ||
) |
Save the slot statistics.
[in] | sfnSf | Slot number |
[in] | sym | Symbol |
[in] | rbUsed | RB used |
void ns3::RbOutputStats::SetDb | ( | SQLiteOutput * | db, |
const std::string & | tableName = "rbStats" |
||
) |
Install the output database.
db | database pointer |
tableName | name of the table where the values will be stored |
The db pointer must be valid through all the lifespan of the class. The method creates, if not exists, a table for storing the values. The table will contain the following columns:
Please note that this method, if the db already contains a table with the same name, also clean existing values that has the same Seed/Run pair.
Definition at line 18 of file 3gpp-outdoor-calibration/rb-output-stats.cc.
void ns3::RbOutputStats::SetDb | ( | SQLiteOutput * | db, |
const std::string & | tableName = "rbStats" |
||
) |
Install the output database.
db | database pointer |
tableName | name of the table where the values will be stored |
The db pointer must be valid through all the lifespan of the class. The method creates, if not exists, a table for storing the values. The table will contain the following columns:
Please note that this method, if the db already contains a table with the same name, also clean existing values that has the same Seed/Run pair.