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

This custom LteSinrChunkProcessor averages the calculated SINR over time. More...

#include <lte-test-sinr-chunk-processor.h>

+ Inheritance diagram for ns3::LteTestSinrChunkProcessor:
+ Collaboration diagram for ns3::LteTestSinrChunkProcessor:

Public Member Functions

 LteTestSinrChunkProcessor (Ptr< LtePhy > p)
 
virtual ~LteTestSinrChunkProcessor ()
 
virtual void End ()
 
virtual void EvaluateSinrChunk (const SpectrumValue &sinr, Time duration)
 
Ptr< SpectrumValueGetSinr ()
 
virtual void Start ()
 
- Public Member Functions inherited from ns3::LteSinrChunkProcessor
virtual ~LteSinrChunkProcessor ()
 
- Public Member Functions inherited from ns3::SimpleRefCount< LteSinrChunkProcessor >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Private Attributes

Ptr< LtePhym_phy
 
Ptr< SpectrumValuem_sinr
 
Ptr< SpectrumValuem_sumSinr
 
Time m_totDuration
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::SimpleRefCount< LteSinrChunkProcessor >
static void Cleanup (void)
 Noop. More...
 

Detailed Description

This custom LteSinrChunkProcessor averages the calculated SINR over time.

It is plugged on the receiving SpectrumPhy and therefore receives the SINR SpectrumValue calculated by the LteInterference module.

Definition at line 35 of file lte-test-sinr-chunk-processor.h.

Constructor & Destructor Documentation

ns3::LteTestSinrChunkProcessor::LteTestSinrChunkProcessor ( Ptr< LtePhy p)

Definition at line 31 of file lte-test-sinr-chunk-processor.cc.

References m_phy, NS_ASSERT, and NS_LOG_FUNCTION.

ns3::LteTestSinrChunkProcessor::~LteTestSinrChunkProcessor ( )
virtual

Definition at line 38 of file lte-test-sinr-chunk-processor.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::LteTestSinrChunkProcessor::End ( void  )
virtual

Implements ns3::LteSinrChunkProcessor.

Definition at line 66 of file lte-test-sinr-chunk-processor.cc.

References ns3::Time::GetSeconds(), m_sinr, m_sumSinr, m_totDuration, NS_LOG_FUNCTION, NS_LOG_LOGIC, and NS_LOG_WARN.

+ Here is the call graph for this function:

void ns3::LteTestSinrChunkProcessor::EvaluateSinrChunk ( const SpectrumValue sinr,
Time  duration 
)
virtual
Ptr< SpectrumValue > ns3::LteTestSinrChunkProcessor::GetSinr ( )

Definition at line 83 of file lte-test-sinr-chunk-processor.cc.

References m_sinr, NS_ASSERT, and NS_LOG_FUNCTION.

void ns3::LteTestSinrChunkProcessor::Start ( void  )
virtual

Implements ns3::LteSinrChunkProcessor.

Definition at line 44 of file lte-test-sinr-chunk-processor.cc.

References m_sumSinr, m_totDuration, and NS_LOG_FUNCTION.

Member Data Documentation

Ptr<LtePhy> ns3::LteTestSinrChunkProcessor::m_phy
private

Definition at line 51 of file lte-test-sinr-chunk-processor.h.

Referenced by LteTestSinrChunkProcessor().

Ptr<SpectrumValue> ns3::LteTestSinrChunkProcessor::m_sinr
private

Definition at line 49 of file lte-test-sinr-chunk-processor.h.

Referenced by End(), and GetSinr().

Ptr<SpectrumValue> ns3::LteTestSinrChunkProcessor::m_sumSinr
private

Definition at line 48 of file lte-test-sinr-chunk-processor.h.

Referenced by End(), EvaluateSinrChunk(), and Start().

Time ns3::LteTestSinrChunkProcessor::m_totDuration
private

Definition at line 50 of file lte-test-sinr-chunk-processor.h.

Referenced by End(), EvaluateSinrChunk(), and Start().


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