A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::LteChunkProcessor Class Reference

This abstract class is used to process the time-vs-frequency SINR/interference/power chunk of a received LTE signal which was calculated by the LteInterference object. More...

#include "lte-chunk-processor.h"

+ Inheritance diagram for ns3::LteChunkProcessor:
+ Collaboration diagram for ns3::LteChunkProcessor:

Public Member Functions

 LteChunkProcessor ()
 
virtual ~LteChunkProcessor ()
 
virtual void AddCallback (LteChunkProcessorCallback c)
 Add callback to list.
 
virtual void End ()
 Finish calculation and inform interested objects about calculated value.
 
virtual void EvaluateChunk (const SpectrumValue &sinr, Time duration)
 Collect SpectrumValue and duration of signal.
 
virtual void Start ()
 Clear internal variables.
 
- Public Member Functions inherited from ns3::SimpleRefCount< LteChunkProcessor >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Private Attributes

std::vector< LteChunkProcessorCallbackm_lteChunkProcessorCallbacks
 chunk processor callback
 
Ptr< SpectrumValuem_sumValues
 sum values
 
Time m_totDuration
 total duration
 

Detailed Description

This abstract class is used to process the time-vs-frequency SINR/interference/power chunk of a received LTE signal which was calculated by the LteInterference object.

Definition at line 34 of file lte-chunk-processor.h.

Constructor & Destructor Documentation

◆ LteChunkProcessor()

ns3::LteChunkProcessor::LteChunkProcessor ( )

Definition at line 21 of file lte-chunk-processor.cc.

References NS_LOG_FUNCTION.

◆ ~LteChunkProcessor()

ns3::LteChunkProcessor::~LteChunkProcessor ( )
virtual

Definition at line 26 of file lte-chunk-processor.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

◆ AddCallback()

void ns3::LteChunkProcessor::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().

Parameters
ccallback function

Definition at line 32 of file lte-chunk-processor.cc.

References m_lteChunkProcessorCallbacks, and NS_LOG_FUNCTION.

◆ End()

void ns3::LteChunkProcessor::End ( )
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.

Definition at line 59 of file lte-chunk-processor.cc.

References ns3::Time::GetSeconds(), m_lteChunkProcessorCallbacks, m_totDuration, NS_LOG_FUNCTION, and NS_LOG_WARN.

+ Here is the call graph for this function:

◆ EvaluateChunk()

void ns3::LteChunkProcessor::EvaluateChunk ( const SpectrumValue & sinr,
Time duration )
virtual

Collect SpectrumValue and duration of signal.

Passed values are collected in m_sumValues and m_totDuration variables.

Parameters
sinrthe SINR
durationthe duration

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

References ns3::Create(), ns3::Time::GetSeconds(), ns3::SpectrumValue::GetSpectrumModel(), m_sumValues, m_totDuration, and NS_LOG_FUNCTION.

+ Here is the call graph for this function:

◆ Start()

void ns3::LteChunkProcessor::Start ( )
virtual

Clear internal variables.

This function clears internal variables in the beginning of calculation

Definition at line 39 of file lte-chunk-processor.cc.

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

+ Here is the call graph for this function:

Member Data Documentation

◆ m_lteChunkProcessorCallbacks

std::vector<LteChunkProcessorCallback> ns3::LteChunkProcessor::m_lteChunkProcessorCallbacks
private

chunk processor callback

Definition at line 83 of file lte-chunk-processor.h.

Referenced by AddCallback(), and End().

◆ m_sumValues

Ptr<SpectrumValue> ns3::LteChunkProcessor::m_sumValues
private

sum values

Definition at line 79 of file lte-chunk-processor.h.

Referenced by EvaluateChunk(), and Start().

◆ m_totDuration

Time ns3::LteChunkProcessor::m_totDuration
private

total duration

Definition at line 80 of file lte-chunk-processor.h.

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


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