A Discrete-Event Network Simulator
API
ns3::LteTestSinrChunkProcessor Class Reference

This custom LteTestSinrChunkProcessor 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 ()
 
virtual ~LteTestSinrChunkProcessor ()
 
virtual void AddCallback (LteChunkProcessorCallback c)
 Add callback to list. More...
 
virtual void End ()
 Finish calculation and inform interested objects about calculated value. More...
 
virtual void EvaluateChunk (const SpectrumValue &sinr, Time duration)
 Collect SpectrumValue and duration of signal. More...
 
Ptr< SpectrumValueGetSinr ()
 
virtual void Start ()
 Clear internal variables. More...
 
- Public Member Functions inherited from ns3::LteChunkProcessor
 LteChunkProcessor ()
 
virtual ~LteChunkProcessor ()
 
- Public Member Functions inherited from ns3::SimpleRefCount< LteChunkProcessor >
 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< SpectrumValuem_sinr
 
Ptr< SpectrumValuem_sumSinr
 
Time m_totDuration
 

Additional Inherited Members

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

Detailed Description

This custom LteTestSinrChunkProcessor 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 34 of file lte-test-sinr-chunk-processor.h.

Constructor & Destructor Documentation

ns3::LteTestSinrChunkProcessor::LteTestSinrChunkProcessor ( )

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

References NS_LOG_FUNCTION.

ns3::LteTestSinrChunkProcessor::~LteTestSinrChunkProcessor ( )
virtual

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

References NS_LOG_FUNCTION.

Member Function Documentation

void ns3::LteTestSinrChunkProcessor::AddCallback ( LteChunkProcessorCallback  c)
virtual

Add callback to list.

This function adds callback c to list. Each callback pass calculated value to its object and is called in LteChunkProcessor::End().

Reimplemented from ns3::LteChunkProcessor.

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

References NS_LOG_FUNCTION.

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

Finish calculation and inform interested objects about calculated value.

During this function all callbacks from list are executed to inform interested object about calculated value. This function is called at the end of calculation.

Reimplemented from ns3::LteChunkProcessor.

Definition at line 69 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::EvaluateChunk ( const SpectrumValue sinr,
Time  duration 
)
virtual

Collect SpectrumValue and duration of signal.

Passed values are collected in m_sumValues and m_totDuration variables.

Reimplemented from ns3::LteChunkProcessor.

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

References ns3::Time::GetSeconds(), ns3::SpectrumValue::GetSpectrumModel(), m_sumSinr, m_totDuration, NS_LOG_FUNCTION, and NS_LOG_LOGIC.

+ Here is the call graph for this function:

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

Clear internal variables.

This function clears internal variables in the beginning of calculation

Reimplemented from ns3::LteChunkProcessor.

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

References m_sumSinr, m_totDuration, ns3::MicroSeconds(), and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

Member Data Documentation

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(), EvaluateChunk(), and Start().

Time ns3::LteTestSinrChunkProcessor::m_totDuration
private

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

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


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