32 NS_OBJECT_ENSURE_REGISTERED(SatFadingOscillator);
33 NS_LOG_COMPONENT_DEFINE(
"SatFadingOscillator");
38 static TypeId tid = TypeId(
"ns3::SatFadingOscillator")
40 .AddConstructor<SatFadingOscillator>();
45 : m_complexAmplitude(0, 0),
50 NS_LOG_FUNCTION(
this);
52 NS_FATAL_ERROR(
"SatFadingOscillator::SatFadingOscillator - Constructor not in use");
58 : m_complexAmplitude(amplitude),
60 m_phase(initialPhase),
63 NS_LOG_FUNCTION(
this << amplitude <<
" " << initialPhase <<
" " << omega);
67 : m_complexAmplitude(0, 0),
68 m_amplitude(amplitude),
69 m_phase(initialPhase),
72 NS_LOG_FUNCTION(
this << amplitude <<
" " << initialPhase <<
" " << omega);
78 NS_LOG_FUNCTION(
this << timeInSeconds);
86 NS_LOG_FUNCTION(
this << timeInSeconds);
88 std::complex<double> complexPhase(std::cos(timeInSeconds *
m_omega +
m_phase),
95 NS_LOG_FUNCTION(
this);
101 NS_LOG_FUNCTION(
this);
double m_amplitude
Amplitude.
std::complex< double > m_complexAmplitude
Complex amplitude.
void DoDispose()
Do needed dispose actions.
SatFadingOscillator()
Constructor.
double m_omega
Rotation speed.
std::complex< double > GetCosineWaveValueAt(double timeInSeconds) const
Returns cosine wave complex value at time t.
~SatFadingOscillator()
Destructor.
static TypeId GetTypeId(void)
NS-3 function for type id.
std::complex< double > GetComplexValueAt(double timeInSeconds) const
Returns complex value at time t.
double m_phase
Initial phase.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.