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

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.
 

Detailed Description

Class to collect and store the Resource Block statistics from a simulation.

See also
SetDb
SaveSinr
EmptyCache

Definition at line 23 of file 3gpp-outdoor-calibration/rb-output-stats.h.

Constructor & Destructor Documentation

◆ RbOutputStats()

ns3::RbOutputStats::RbOutputStats ( )

Constructor.

Definition at line 13 of file 3gpp-outdoor-calibration/rb-output-stats.cc.

Member Function Documentation

◆ EmptyCache()

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.

◆ SaveRbStats() [1/2]

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.

Parameters
[in]sfnSfSlot number
[in]symSymbol
[in]rbUsedRB used

Definition at line 44 of file 3gpp-outdoor-calibration/rb-output-stats.cc.

◆ SaveRbStats() [2/2]

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.

Parameters
[in]sfnSfSlot number
[in]symSymbol
[in]rbUsedRB used

◆ SetDb() [1/2]

void ns3::RbOutputStats::SetDb ( SQLiteOutput *  db,
const std::string &  tableName = "rbStats" 
)

Install the output database.

Parameters
dbdatabase pointer
tableNamename 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:

  • "(Frame INTEGER NOT NULL, "
  • "SubFrame INTEGER NOT NULL,"
  • "Slot INTEGER NOT NULL,"
  • "Symbol INTEGER NOT NULL,"
  • "RBIndexActive INTEGER NOT NULL,"
  • "BwpId INTEGER NOT NULL,"
  • "CellId INTEGER NOT NULL,"
  • "Seed INTEGER NOT NULL,"
  • "Run INTEGER NOT NULL);"

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.

◆ SetDb() [2/2]

void ns3::RbOutputStats::SetDb ( SQLiteOutput *  db,
const std::string &  tableName = "rbStats" 
)

Install the output database.

Parameters
dbdatabase pointer
tableNamename 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:

  • "(Frame INTEGER NOT NULL, "
  • "SubFrame INTEGER NOT NULL,"
  • "Slot INTEGER NOT NULL,"
  • "Symbol INTEGER NOT NULL,"
  • "RBIndexActive INTEGER NOT NULL,"
  • "BwpId INTEGER NOT NULL,"
  • "CellId INTEGER NOT NULL,"
  • "Seed INTEGER NOT NULL,"
  • "Run INTEGER NOT NULL);"

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.


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