#include <IsotropicScalarBackgroundNoise.h>
inet::physicallayer::IsotropicScalarBackgroundNoise::IsotropicScalarBackgroundNoise |
( |
| ) |
|
compose< J, pow< s,-1 > > W
Definition: Units.h:770
#define NaN
Definition: INETMath.h:103
W power
Definition: IsotropicScalarBackgroundNoise.h:30
const INoise * inet::physicallayer::IsotropicScalarBackgroundNoise::computeNoise |
( |
const IListening * |
listening | ) |
const |
|
overridevirtual |
Implements inet::physicallayer::IBackgroundNoise.
51 const BandListening *bandListening = check_and_cast<
const BandListening *>(listening);
52 simtime_t startTime = listening->getStartTime();
53 simtime_t endTime = listening->getEndTime();
54 std::map<simtime_t, W> *powerChanges =
new std::map<simtime_t, W>();
55 powerChanges->insert(std::pair<simtime_t, W>(startTime,
power));
56 powerChanges->insert(std::pair<simtime_t, W>(endTime, -
power));
57 return new ScalarNoise(startTime, endTime, bandListening->getCarrierFrequency(), bandListening->getBandwidth(), powerChanges);
W power
Definition: IsotropicScalarBackgroundNoise.h:30
virtual W inet::physicallayer::IsotropicScalarBackgroundNoise::getPower |
( |
| ) |
const |
|
inlinevirtual |
W power
Definition: IsotropicScalarBackgroundNoise.h:30
void inet::physicallayer::IsotropicScalarBackgroundNoise::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
35 cModule::initialize(stage);
double dBm2mW(double dBm)
Converts a dBm value into milliwatts.
Definition: INETMath.h:176
Local initializations.
Definition: InitStages.h:35
milli< W >::type mW
Definition: Units.h:903
W power
Definition: IsotropicScalarBackgroundNoise.h:30
std::ostream & inet::physicallayer::IsotropicScalarBackgroundNoise::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Function calls to operator<< with pointers or references either const or not are all forwarded to this function.
Reimplemented from inet::physicallayer::IPrintableObject.
43 stream <<
"IsotropicScalarBackgroundNoise";
45 stream <<
", power = " <<
power;
Definition: IPrintableObject.h:36
W power
Definition: IsotropicScalarBackgroundNoise.h:30
W inet::physicallayer::IsotropicScalarBackgroundNoise::power |
|
protected |
The documentation for this class was generated from the following files: