#include <IsotropicDimensionalBackgroundNoise.h>
◆ computeNoise()
| const INoise * inet::physicallayer::IsotropicDimensionalBackgroundNoise::computeNoise |
( |
const IListening * |
listening | ) |
const |
|
overridevirtual |
Implements inet::physicallayer::IBackgroundNoise.
49 const BandListening *bandListening = check_and_cast<const BandListening *>(listening);
50 Hz centerFrequency = bandListening->getCenterFrequency();
51 Hz listeningBandwidth = bandListening->getBandwidth();
52 WpHz noisePowerSpectralDensity;
59 throw cRuntimeError(
"The powerSpectralDensity parameter is not specified and the power parameter cannot be used, because background noise bandwidth doesn't match listening bandwidth");
63 const Ptr<const IFunction<WpHz, Domain<simsec, Hz>>>& powerFunction = makeShared<ConstantFunction<WpHz, Domain<simsec, Hz>>>(noisePowerSpectralDensity);
64 const simtime_t startTime = listening->getStartTime();
65 const simtime_t endTime = listening->getEndTime();
◆ initialize()
| void inet::physicallayer::IsotropicDimensionalBackgroundNoise::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
21 cModule::initialize(stage);
27 throw cRuntimeError(
"One of powerSpectralDensity or power parameters must be specified");
29 throw cRuntimeError(
"Both of powerSpectralDensity and power parameters cannot be specified");
◆ printToStream()
| std::ostream & inet::physicallayer::IsotropicDimensionalBackgroundNoise::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
35 stream <<
"IsotropicDimensionalBackgroundNoise";
◆ bandwidth
| Hz inet::physicallayer::IsotropicDimensionalBackgroundNoise::bandwidth = Hz(NaN) |
|
mutableprotected |
◆ power
| W inet::physicallayer::IsotropicDimensionalBackgroundNoise::power = W(NaN) |
|
protected |
◆ powerSpectralDensity
| WpHz inet::physicallayer::IsotropicDimensionalBackgroundNoise::powerSpectralDensity = WpHz(NaN) |
|
protected |
The documentation for this class was generated from the following files: