ns3::SatFadingOscillator Class Reference

Oscillator class for faders. More...

#include "satellite-fading-oscillator.h"

+ Inheritance diagram for ns3::SatFadingOscillator:
+ Collaboration diagram for ns3::SatFadingOscillator:

Public Member Functions

 SatFadingOscillator ()
 Constructor. More...
 
 SatFadingOscillator (double amplitude, double initialPhase, double omega)
 Constructor. More...
 
 SatFadingOscillator (std::complex< double > amplitude, double initialPhase, double omega)
 Constructor. More...
 
 ~SatFadingOscillator ()
 Destructor. More...
 
void DoDispose ()
 Do needed dispose actions. More...
 
std::complex< double > GetComplexValueAt (double timeInSeconds) const
 Returns complex value at time t. More...
 
std::complex< double > GetCosineWaveValueAt (double timeInSeconds) const
 Returns cosine wave complex value at time t. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 NS-3 function for type id. More...
 

Private Attributes

double m_amplitude
 Amplitude. More...
 
std::complex< double > m_complexAmplitude
 Complex amplitude. More...
 
double m_omega
 Rotation speed. More...
 
double m_phase
 Initial phase. More...
 

Detailed Description

Oscillator class for faders.

This class implements the oscillators required by the faders for Markov-fading. The provided oscillator values are used to form individual fading samples.

Definition at line 40 of file satellite-fading-oscillator.h.

Constructor & Destructor Documentation

◆ SatFadingOscillator() [1/3]

ns3::SatFadingOscillator::SatFadingOscillator ( )

Constructor.

Definition at line 40 of file satellite-fading-oscillator.cc.

◆ SatFadingOscillator() [2/3]

ns3::SatFadingOscillator::SatFadingOscillator ( std::complex< double >  amplitude,
double  initialPhase,
double  omega 
)

Constructor.

Parameters
amplitudeamplitude
initialPhaseintial phase
omegarotation speed

Definition at line 51 of file satellite-fading-oscillator.cc.

◆ SatFadingOscillator() [3/3]

ns3::SatFadingOscillator::SatFadingOscillator ( double  amplitude,
double  initialPhase,
double  omega 
)

Constructor.

Parameters
amplitudeamplitude
initialPhaseinitial phase
omegarotation speed

Definition at line 62 of file satellite-fading-oscillator.cc.

◆ ~SatFadingOscillator()

ns3::SatFadingOscillator::~SatFadingOscillator ( )

Destructor.

Definition at line 89 of file satellite-fading-oscillator.cc.

Member Function Documentation

◆ DoDispose()

void ns3::SatFadingOscillator::DoDispose ( void  )

Do needed dispose actions.

Definition at line 95 of file satellite-fading-oscillator.cc.

◆ GetComplexValueAt()

std::complex< double > ns3::SatFadingOscillator::GetComplexValueAt ( double  timeInSeconds) const

Returns complex value at time t.

Parameters
timeInSecondscurrent time in seconds
Returns
complex value

Definition at line 72 of file satellite-fading-oscillator.cc.

References m_complexAmplitude, m_omega, and m_phase.

◆ GetCosineWaveValueAt()

std::complex< double > ns3::SatFadingOscillator::GetCosineWaveValueAt ( double  timeInSeconds) const

Returns cosine wave complex value at time t.

Parameters
timeInSecondscurrent time in seconds
Returns
complex value

Definition at line 80 of file satellite-fading-oscillator.cc.

References m_amplitude, m_omega, and m_phase.

◆ GetTypeId()

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

NS-3 function for type id.

Returns
type id

Definition at line 32 of file satellite-fading-oscillator.cc.

Member Data Documentation

◆ m_amplitude

double ns3::SatFadingOscillator::m_amplitude
private

Amplitude.

Definition at line 103 of file satellite-fading-oscillator.h.

Referenced by GetCosineWaveValueAt().

◆ m_complexAmplitude

std::complex<double> ns3::SatFadingOscillator::m_complexAmplitude
private

Complex amplitude.

Definition at line 98 of file satellite-fading-oscillator.h.

Referenced by GetComplexValueAt().

◆ m_omega

double ns3::SatFadingOscillator::m_omega
private

Rotation speed.

Definition at line 113 of file satellite-fading-oscillator.h.

Referenced by GetComplexValueAt(), and GetCosineWaveValueAt().

◆ m_phase

double ns3::SatFadingOscillator::m_phase
private

Initial phase.

Definition at line 108 of file satellite-fading-oscillator.h.

Referenced by GetComplexValueAt(), and GetCosineWaveValueAt().


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