![]() |
5G-LENA nr-v3.3-161-gad18933f
The 5G/NR module for the ns-3 simulator
|
Class to collect and store the SINR values obtained from a simulation. More...
#include "slot-output-stats.h"
Public Member Functions | |
SlotOutputStats () | |
Constructor. | |
SlotOutputStats () | |
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 | SaveSlotStats (const SfnSf &sfnSf, uint32_t scheduledUe, uint32_t usedReg, uint32_t usedSym, uint32_t availableRb, uint32_t availableSym, uint16_t bwpId, uint16_t cellId) |
Save the slot statistics. | |
void | SaveSlotStats (const SfnSf &sfnSf, uint32_t scheduledUe, uint32_t usedReg, uint32_t usedSym, uint32_t availableRb, uint32_t availableSym, uint16_t bwpId, uint16_t cellId) |
Save the slot statistics. | |
void | SetDb (SQLiteOutput *db, const std::string &tableName="slotStats") |
Install the output database. | |
void | SetDb (SQLiteOutput *db, const std::string &tableName="slotStats") |
Install the output database. | |
Class to collect and store the SINR values obtained from a simulation.
The class is meant to store in a database the SINR values from UE or GNB during a simulation. The class contains a cache, that after some time is written to the disk.
Definition at line 27 of file 3gpp-outdoor-calibration/slot-output-stats.h.
ns3::SlotOutputStats::SlotOutputStats | ( | ) |
Constructor.
Definition at line 13 of file 3gpp-outdoor-calibration/slot-output-stats.cc.
void ns3::SlotOutputStats::EmptyCache | ( | ) |
Force the cache write to disk, emptying the cache itself.
Definition at line 76 of file 3gpp-outdoor-calibration/slot-output-stats.cc.
void ns3::SlotOutputStats::SaveSlotStats | ( | const SfnSf & | sfnSf, |
uint32_t | scheduledUe, | ||
uint32_t | usedReg, | ||
uint32_t | usedSym, | ||
uint32_t | availableRb, | ||
uint32_t | availableSym, | ||
uint16_t | bwpId, | ||
uint16_t | cellId | ||
) |
Save the slot statistics.
[in] | sfnSf | Slot number |
[in] | scheduledUe | The number of scheduled UE in the slot |
[in] | usedReg | Used Resource Element Group (1 sym x 1 RB) |
[in] | usedSym | Used symbols |
[in] | availableRb | Available RBs |
[in] | availableSym | Available symbols |
[in] | bwpId | BWP ID |
[in] | cellId | Cell ID |
Definition at line 47 of file 3gpp-outdoor-calibration/slot-output-stats.cc.
void ns3::SlotOutputStats::SaveSlotStats | ( | const SfnSf & | sfnSf, |
uint32_t | scheduledUe, | ||
uint32_t | usedReg, | ||
uint32_t | usedSym, | ||
uint32_t | availableRb, | ||
uint32_t | availableSym, | ||
uint16_t | bwpId, | ||
uint16_t | cellId | ||
) |
Save the slot statistics.
[in] | sfnSf | Slot number |
[in] | scheduledUe | The number of scheduled UE in the slot |
[in] | usedReg | Used Resource Element Group (1 sym x 1 RB) |
[in] | usedSym | Used symbols |
[in] | availableRb | Available RBs |
[in] | availableSym | Available symbols |
[in] | bwpId | BWP ID |
[in] | cellId | Cell ID |
void ns3::SlotOutputStats::SetDb | ( | SQLiteOutput * | db, |
const std::string & | tableName = "slotStats" |
||
) |
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/slot-output-stats.cc.
void ns3::SlotOutputStats::SetDb | ( | SQLiteOutput * | db, |
const std::string & | tableName = "slotStats" |
||
) |
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.