20 #ifndef DOPPLER_PROCESS_H 21 #define DOPPLER_PROCESS_H 23 #include "ns3/object.h" 24 #include "ns3/nstime.h" 25 #include "ns3/random-variable-stream.h" 30 class PropagationLossModel;
31 class JakesPropagationLossModel;
95 Oscillator (std::complex<double> amplitude,
double initialPhase,
double omega);
133 #endif // DOPPLER_PROCESS_H Ptr< UniformRandomVariable > m_uniformVariable
random stream
Simulation virtual time values and global simulation resolution.
Smart pointer class similar to boost::intrusive_ptr.
std::complex< double > GetValueAt(Time t) const
Get the complex amplitude at a given moment.
void SetPropagationLossModel(Ptr< const PropagationLossModel > model)
Set the propagation model using this class.
std::vector< Oscillator > m_oscillators
Vector of oscillators.
virtual void DoDispose()
Destructor implementation.
This class Represents a single oscillator.
Oscillator(std::complex< double > amplitude, double initialPhase, double omega)
Initiate oscillator with complex amplitude, initial phase and rotation speed.
std::complex< double > GetComplexGain() const
Get the channel complex gain.
double m_omegaDopplerMax
max rotation speed Doppler frequency
double m_omega
Rotation speed of the oscillator .
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetDopplerFrequencyHz(double dopplerFrequencyHz)
Set the Doppler frequency.
double GetChannelGainDb() const
Get the channel gain in dB.
unsigned int m_nOscillators
number of oscillators
static TypeId GetTypeId(void)
Get the type ID.
void ConstructOscillators()
A base class which provides memory management and object aggregation.
Ptr< const JakesPropagationLossModel > m_jakes
pointer to the propagation loss model
std::complex< double > m_amplitude
Complex number .
a unique identifier for an interface.
double m_phase
Phase of the oscillator.
void SetNOscillators(unsigned int nOscillators)
Set the number of Oscillators to use.
Implementation for a single path Stationary Jakes propagation loss model.