5#ifndef POWER_OUTPUT_STATS_H
6#define POWER_OUTPUT_STATS_H
10#include "ns3/spectrum-value.h"
11#include "ns3/sqlite-output.h"
61 void SetDb(SQLiteOutput* db,
const std::string& tableName =
"power");
76 Ptr<const SpectrumValue> txPsd,
89 struct PowerResultCache
100 uint32_t rbNumActive;
104 static void DeleteWhere(SQLiteOutput* p, uint32_t seed, uint32_t run,
const std::string& table);
109 std::vector<PowerResultCache> m_powerCache;
110 std::string m_tableName;
Class to collect and store the transmission power values obtained from a simulation.
PowerOutputStats()
Constructor.
void SavePower(const SfnSf &sfnSf, Ptr< const SpectrumValue > txPsd, const Time &t, uint16_t rnti, uint64_t imsi, uint16_t bwpId, uint16_t cellId)
Store power values.
void EmptyCache()
Force the cache write to disk, emptying the cache itself.
void SetDb(SQLiteOutput *db, const std::string &tableName="power")
Install the output database.