A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::PhyRxStatsCalculator Class Reference

#include <phy-rx-stats-calculator.h>

+ Inheritance diagram for ns3::PhyRxStatsCalculator:
+ Collaboration diagram for ns3::PhyRxStatsCalculator:

Public Member Functions

 PhyRxStatsCalculator ()
 
virtual ~PhyRxStatsCalculator ()
 
void DlPhyReception (PhyReceptionStatParameters params)
 
std::string GetDlRxOutputFilename (void)
 
std::string GetUlRxOutputFilename (void)
 
void SetDlRxOutputFilename (std::string outputFilename)
 
void SetUlRxOutputFilename (std::string outputFilename)
 
void UlPhyReception (PhyReceptionStatParameters params)
 
- Public Member Functions inherited from ns3::LteStatsCalculator
 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)
 
- Public Member Functions inherited from ns3::Object
 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)
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 
 SimpleRefCount (const SimpleRefCount &o)
 
uint32_t GetReferenceCount (void) const
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 
void Ref (void) const
 
void Unref (void) const
 
- Public Member Functions inherited from ns3::ObjectBase
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 void DlPhyReceptionCallback (Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
 
static TypeId GetTypeId (void)
 
static void UlPhyReceptionCallback (Ptr< PhyRxStatsCalculator > phyRxStats, std::string path, PhyReceptionStatParameters params)
 
- Static Public Member Functions inherited from ns3::LteStatsCalculator
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 

Private Attributes

bool m_dlRxFirstWrite
 
bool m_ulRxFirstWrite
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoDispose (void)
 
virtual void DoInitialize (void)
 
virtual void NotifyNewAggregate (void)
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 
- Static Protected Member Functions inherited from ns3::LteStatsCalculator
static uint16_t FindCellIdFromEnbMac (std::string path, uint16_t rnti)
 
static uint16_t FindCellIdFromEnbRlcPath (std::string path)
 
static uint64_t FindImsiForEnb (std::string path, uint16_t rnti)
 
static uint64_t FindImsiForUe (std::string path, uint16_t rnti)
 
static uint64_t FindImsiFromEnbMac (std::string path, uint16_t rnti)
 
static uint64_t FindImsiFromEnbRlcPath (std::string path)
 
static uint64_t FindImsiFromLteNetDevice (std::string path)
 
static uint64_t FindImsiFromUePhy (std::string path)
 

Detailed Description

Takes care of storing the information generated at PHY layer regarding reception. Metrics saved are: time

  • Timestamp (in seconds)
  • Frame index
  • Subframe index
  • C-RNTI
  • MCS for transport block 1
  • Size of transport block 1
  • MCS for transport block 2 (0 if not used)
  • Size of transport block 2 (0 if not used)

Doxygen introspection did not find any typical Config paths.

Attributes

  • DlRxOutputFilename: Name of the file where the downlink results will be saved.
    • Set with class: StringValue
    • Underlying type: std::string
    • Initial value: DlRxPhyStats.txt
    • Flags: construct write
  • UlRxOutputFilename: Name of the file where the uplink results will be saved.
    • Set with class: StringValue
    • Underlying type: std::string
    • Initial value: UlRxPhyStats.txt
    • Flags: construct write

No TraceSources are defined for this type.

Definition at line 48 of file phy-rx-stats-calculator.h.

Constructor & Destructor Documentation

ns3::PhyRxStatsCalculator::PhyRxStatsCalculator ( )

Constructor

Definition at line 34 of file phy-rx-stats-calculator.cc.

References NS_LOG_FUNCTION.

ns3::PhyRxStatsCalculator::~PhyRxStatsCalculator ( )
virtual

Destructor

Definition at line 42 of file phy-rx-stats-calculator.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::PhyRxStatsCalculator::DlPhyReception ( PhyReceptionStatParameters  params)

Notifies the stats calculator that an downlink reception has occurred.

Parameters
cellIdCell ID of the attached Enb
imsiIMSI of the scheduled UE
frameNoFrame number
subframeNoSubframe number
rntiC-RNTI scheduled
layerthe layer (cw) of the transmission
txModethe transmission Mode
mcsMCS for transport block
sizeSize of transport block
rvthe redundancy version (HARQ)
ndinew data indicator flag
correctnesscorrectness of the TB received

Definition at line 92 of file phy-rx-stats-calculator.cc.

References GetDlRxOutputFilename(), ns3::PhyReceptionStatParameters::m_cellId, ns3::PhyReceptionStatParameters::m_correctness, m_dlRxFirstWrite, ns3::PhyReceptionStatParameters::m_imsi, ns3::PhyReceptionStatParameters::m_layer, ns3::PhyReceptionStatParameters::m_mcs, ns3::PhyReceptionStatParameters::m_ndi, ns3::PhyReceptionStatParameters::m_rnti, ns3::PhyReceptionStatParameters::m_rv, ns3::PhyReceptionStatParameters::m_size, ns3::PhyReceptionStatParameters::m_timestamp, ns3::PhyReceptionStatParameters::m_txMode, NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.

+ Here is the call graph for this function:

void ns3::PhyRxStatsCalculator::DlPhyReceptionCallback ( Ptr< PhyRxStatsCalculator phyRxStats,
std::string  path,
PhyReceptionStatParameters  params 
)
static

trace sink

Parameters
phyRxStats
path
params

Definition at line 179 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::FindImsiForUe(), ns3::PhyReceptionStatParameters::m_imsi, ns3::PhyReceptionStatParameters::m_rnti, and NS_LOG_FUNCTION.

Referenced by ns3::LteHelper::EnableDlRxPhyTraces().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string ns3::PhyRxStatsCalculator::GetDlRxOutputFilename ( void  )

Get the name of the file where the DL RX PHY statistics will be stored.

Definition at line 86 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::GetDlOutputFilename().

Referenced by DlPhyReception().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TypeId ns3::PhyRxStatsCalculator::GetTypeId ( void  )
static

Inherited from ns3::Object

Definition at line 48 of file phy-rx-stats-calculator.cc.

References SetDlRxOutputFilename(), ns3::TypeId::SetParent(), and SetUlRxOutputFilename().

+ Here is the call graph for this function:

std::string ns3::PhyRxStatsCalculator::GetUlRxOutputFilename ( void  )

Get the name of the file where the UL RX PHY statistics will be stored.

Definition at line 74 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::GetUlOutputFilename().

Referenced by UlPhyReception().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::PhyRxStatsCalculator::SetDlRxOutputFilename ( std::string  outputFilename)

Set the name of the file where the DL RX PHY statistics will be stored.

Parameters
outputFilenamestring with the name of the file

Definition at line 80 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::SetDlOutputFilename().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::PhyRxStatsCalculator::SetUlRxOutputFilename ( std::string  outputFilename)

Set the name of the file where the UL Rx PHY statistics will be stored.

Parameters
outputFilenamestring with the name of the file

Definition at line 68 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::SetUlOutputFilename().

Referenced by GetTypeId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::PhyRxStatsCalculator::UlPhyReception ( PhyReceptionStatParameters  params)

Notifies the stats calculator that an uplink reception has occurred.

Parameters
cellIdCell ID of the attached Enb
imsiIMSI of the scheduled UE
frameNoFrame number
subframeNoSubframe number
rntiC-RNTI scheduled
layerthe layer (cw) of the transmission
txModethe transmission Mode
mcsMCS for transport block
sizeSize of transport block
rvthe redundancy version (HARQ)
ndinew data indicator flag
correctnesscorrectness of the TB received

Definition at line 136 of file phy-rx-stats-calculator.cc.

References GetUlRxOutputFilename(), ns3::PhyReceptionStatParameters::m_cellId, ns3::PhyReceptionStatParameters::m_correctness, ns3::PhyReceptionStatParameters::m_imsi, ns3::PhyReceptionStatParameters::m_layer, ns3::PhyReceptionStatParameters::m_mcs, ns3::PhyReceptionStatParameters::m_ndi, ns3::PhyReceptionStatParameters::m_rnti, ns3::PhyReceptionStatParameters::m_rv, ns3::PhyReceptionStatParameters::m_size, ns3::PhyReceptionStatParameters::m_timestamp, m_ulRxFirstWrite, NS_LOG_ERROR, NS_LOG_FUNCTION, and NS_LOG_INFO.

+ Here is the call graph for this function:

void ns3::PhyRxStatsCalculator::UlPhyReceptionCallback ( Ptr< PhyRxStatsCalculator phyRxStats,
std::string  path,
PhyReceptionStatParameters  params 
)
static

trace sink

Parameters
phyRxStats
path
params

Definition at line 201 of file phy-rx-stats-calculator.cc.

References ns3::LteStatsCalculator::FindImsiForEnb(), ns3::PhyReceptionStatParameters::m_imsi, ns3::PhyReceptionStatParameters::m_rnti, and NS_LOG_FUNCTION.

Referenced by ns3::LteHelper::EnableUlRxPhyTraces().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool ns3::PhyRxStatsCalculator::m_dlRxFirstWrite
private

Definition at line 145 of file phy-rx-stats-calculator.h.

Referenced by DlPhyReception().

bool ns3::PhyRxStatsCalculator::m_ulRxFirstWrite
private

Definition at line 146 of file phy-rx-stats-calculator.h.

Referenced by UlPhyReception().


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