#include <phy-stats-calculator.h>
Public Member Functions | |
PhyStatsCalculator () | |
virtual | ~PhyStatsCalculator () |
std::string | GetCurrentCellRsrpSinrFilename (void) |
std::string | GetInterferenceFilename (void) |
std::string | GetUeSinrFilename (void) |
void | ReportCurrentCellRsrpSinr (uint16_t cellId, uint64_t imsi, uint16_t rnti, double rsrp, double sinr) |
void | ReportInterference (uint16_t cellId, Ptr< SpectrumValue > interference) |
void | ReportUeSinr (uint16_t cellId, uint64_t imsi, uint16_t rnti, double sinrLinear) |
void | SetCurrentCellRsrpSinrFilename (std::string filename) |
void | SetInterferenceFilename (std::string filename) |
void | SetUeSinrFilename (std::string filename) |
![]() | |
LteStatsCalculator () | |
virtual | ~LteStatsCalculator () |
bool | ExistsCellIdPath (std::string path) |
bool | ExistsImsiPath (std::string path) |
uint16_t | GetCellIdPath (std::string path) |
std::string | GetDlOutputFilename (void) |
uint64_t | GetImsiPath (std::string path) |
std::string | GetUlOutputFilename (void) |
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) |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Initialize (void) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Private Attributes | |
std::string | m_interferenceFilename |
bool | m_InterferenceFirstWrite |
std::string | m_RsrpSinrFilename |
bool | m_RsrpSinrFirstWrite |
std::string | m_ueSinrFilename |
bool | m_UeSinrFirstWrite |
Additional Inherited Members | |
![]() | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
virtual void | DoInitialize (void) |
virtual void | NotifyNewAggregate (void) |
Takes care of storing the information generated at PHY layer. Metrics saved are:
Doxygen introspection did not find any typical Config paths.
No TraceSources are defined for this type.
Definition at line 53 of file phy-stats-calculator.h.
ns3::PhyStatsCalculator::PhyStatsCalculator | ( | ) |
|
virtual |
std::string ns3::PhyStatsCalculator::GetCurrentCellRsrpSinrFilename | ( | void | ) |
Get the name of the file where the RSRP/SINR statistics will be stored.
Definition at line 78 of file phy-stats-calculator.cc.
References m_RsrpSinrFilename.
Referenced by ReportCurrentCellRsrpSinr().
std::string ns3::PhyStatsCalculator::GetInterferenceFilename | ( | void | ) |
Get the name of the file where the interference statistics will be stored.
Definition at line 102 of file phy-stats-calculator.cc.
References m_interferenceFilename.
Referenced by ReportInterference().
|
static |
Inherited from ns3::Object
Reimplemented from ns3::LteStatsCalculator.
Definition at line 47 of file phy-stats-calculator.cc.
References SetCurrentCellRsrpSinrFilename(), SetInterferenceFilename(), ns3::TypeId::SetParent(), and SetUeSinrFilename().
std::string ns3::PhyStatsCalculator::GetUeSinrFilename | ( | void | ) |
Get the name of the file where the UE SINR statistics will be stored.
Definition at line 90 of file phy-stats-calculator.cc.
References m_ueSinrFilename.
Referenced by ReportUeSinr().
void ns3::PhyStatsCalculator::ReportCurrentCellRsrpSinr | ( | uint16_t | cellId, |
uint64_t | imsi, | ||
uint16_t | rnti, | ||
double | rsrp, | ||
double | sinr | ||
) |
Notifies the stats calculator that an RSRP and SINR report has occurred.
imsi | IMSI of the scheduled UE |
rnti | C-RNTI scheduled |
rsrp | Reference Signal Received Power |
sinr | SINR averaged among RBs |
Definition at line 110 of file phy-stats-calculator.cc.
References GetCurrentCellRsrpSinrFilename(), ns3::Time::GetNanoSeconds(), m_RsrpSinrFirstWrite, ns3::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.
Referenced by ns3::ReportCurrentCellRsrpSinrCallback().
void ns3::PhyStatsCalculator::ReportInterference | ( | uint16_t | cellId, |
Ptr< SpectrumValue > | interference | ||
) |
Notifies the stats calculator that an interference report has occurred.
imsi | IMSI of the scheduled UE |
rnti | C-RNTI scheduled |
cellId | Cell ID of the reported Enb |
interference | Measured interference for each RB |
Definition at line 186 of file phy-stats-calculator.cc.
References GetInterferenceFilename(), ns3::Time::GetNanoSeconds(), m_InterferenceFirstWrite, ns3::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.
Referenced by ns3::ReportInterference().
void ns3::PhyStatsCalculator::ReportUeSinr | ( | uint16_t | cellId, |
uint64_t | imsi, | ||
uint16_t | rnti, | ||
double | sinrLinear | ||
) |
Notifies the stats calculator that an UE SINR report has occurred.
cellId | Cell ID of the reported Enb |
imsi | IMSI of the scheduled UE |
rnti | C-RNTI scheduled |
sinrLinear | measured and reported SINR value in linear |
Definition at line 149 of file phy-stats-calculator.cc.
References ns3::Time::GetNanoSeconds(), GetUeSinrFilename(), m_UeSinrFirstWrite, ns3::Now(), NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.
Referenced by ns3::ReportUeSinr().
void ns3::PhyStatsCalculator::SetCurrentCellRsrpSinrFilename | ( | std::string | filename | ) |
Set the name of the file where the RSRP/SINR statistics will be stored.
filename | string with the name of the file |
Definition at line 72 of file phy-stats-calculator.cc.
References m_RsrpSinrFilename.
Referenced by GetTypeId().
void ns3::PhyStatsCalculator::SetInterferenceFilename | ( | std::string | filename | ) |
Set the name of the file where the interference statistics will be stored.
filename | string with the name of the file |
Definition at line 96 of file phy-stats-calculator.cc.
References m_interferenceFilename.
Referenced by GetTypeId().
void ns3::PhyStatsCalculator::SetUeSinrFilename | ( | std::string | filename | ) |
Set the name of the file where the UE SINR statistics will be stored.
filename | string with the name of the file |
Definition at line 84 of file phy-stats-calculator.cc.
References m_ueSinrFilename.
Referenced by GetTypeId().
|
private |
Definition at line 140 of file phy-stats-calculator.h.
Referenced by GetInterferenceFilename(), and SetInterferenceFilename().
|
private |
Definition at line 136 of file phy-stats-calculator.h.
Referenced by ReportInterference().
|
private |
Definition at line 138 of file phy-stats-calculator.h.
Referenced by GetCurrentCellRsrpSinrFilename(), and SetCurrentCellRsrpSinrFilename().
|
private |
Definition at line 134 of file phy-stats-calculator.h.
Referenced by ReportCurrentCellRsrpSinr().
|
private |
Definition at line 139 of file phy-stats-calculator.h.
Referenced by GetUeSinrFilename(), and SetUeSinrFilename().
|
private |
Definition at line 135 of file phy-stats-calculator.h.
Referenced by ReportUeSinr().