28 NS_OBJECT_ENSURE_REGISTERED(SatFadingOscillator);
29 NS_LOG_COMPONENT_DEFINE(
"SatFadingOscillator");
34 static TypeId tid = TypeId(
"ns3::SatFadingOscillator")
36 .AddConstructor<SatFadingOscillator>();
41 : m_complexAmplitude(0, 0),
46 NS_LOG_FUNCTION(
this);
48 NS_FATAL_ERROR(
"SatFadingOscillator::SatFadingOscillator - Constructor not in use");
54 : m_complexAmplitude(amplitude),
56 m_phase(initialPhase),
59 NS_LOG_FUNCTION(
this << amplitude <<
" " << initialPhase <<
" " << omega);
63 : m_complexAmplitude(0, 0),
64 m_amplitude(amplitude),
65 m_phase(initialPhase),
68 NS_LOG_FUNCTION(
this << amplitude <<
" " << initialPhase <<
" " << omega);
74 NS_LOG_FUNCTION(
this << timeInSeconds);
82 NS_LOG_FUNCTION(
this << timeInSeconds);
84 std::complex<double> complexPhase(std::cos(timeInSeconds *
m_omega +
m_phase),
91 NS_LOG_FUNCTION(
this);
97 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.