#include <IsotropicScalarBackgroundNoise.h>
◆ computeNoise()
| const INoise * inet::physicallayer::IsotropicScalarBackgroundNoise::computeNoise |
( |
const IListening * |
listening | ) |
const |
|
overridevirtual |
Implements inet::physicallayer::IBackgroundNoise.
40 const BandListening *bandListening = check_and_cast<const BandListening *>(listening);
41 simtime_t startTime = listening->getStartTime();
42 simtime_t endTime = listening->getEndTime();
43 Hz centerFrequency = bandListening->getCenterFrequency();
44 Hz listeningBandwidth = bandListening->getBandwidth();
48 throw cRuntimeError(
"Background noise bandwidth doesn't match listening bandwidth");
49 std::map<simtime_t, W> *powerChanges =
new std::map<simtime_t, W>();
50 powerChanges->insert(std::pair<simtime_t, W>(startTime,
power));
51 powerChanges->insert(std::pair<simtime_t, W>(endTime, -
power));
52 return new ScalarNoise(startTime, endTime, centerFrequency,
bandwidth, powerChanges);
◆ getPower()
| virtual W inet::physicallayer::IsotropicScalarBackgroundNoise::getPower |
( |
| ) |
const |
|
inlinevirtual |
◆ initialize()
| void inet::physicallayer::IsotropicScalarBackgroundNoise::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
21 cModule::initialize(stage);
◆ printToStream()
| std::ostream & inet::physicallayer::IsotropicScalarBackgroundNoise::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
30 stream <<
"IsotropicScalarBackgroundNoise";
◆ bandwidth
| Hz inet::physicallayer::IsotropicScalarBackgroundNoise::bandwidth = Hz(NaN) |
|
mutableprotected |
◆ power
| W inet::physicallayer::IsotropicScalarBackgroundNoise::power = W(NaN) |
|
protected |
The documentation for this class was generated from the following files: