40 const DimensionalNoise *dimensionalNoise = check_and_cast<
const DimensionalNoise *>(
noise);
41 const DimensionalReception *dimensionalReception = check_and_cast<
const DimensionalReception *>(
reception);
42 EV_DEBUG <<
"Reception power begin " << endl;
43 dimensionalReception->getPower()->print(
EVSTREAM);
44 EV_DEBUG <<
"Reception power end" << endl;
45 const ConstMapping *noisePower = dimensionalNoise->getPower();
46 const ConstMapping *receptionPower = dimensionalReception->getPower();
50 Hz carrierFrequency = dimensionalReception->getCarrierFrequency();
51 Hz bandwidth = dimensionalReception->getBandwidth();
52 const DimensionSet& dimensions = receptionPower->getDimensionSet();
53 Argument startArgument(dimensions);
54 Argument endArgument(dimensions);
56 startArgument.setTime(startTime);
62 endArgument.setArgValue(
Dimension::frequency, nexttoward((carrierFrequency + bandwidth / 2).
get(), 0));
64 EV_DEBUG <<
"SNIR begin " << endl;
66 EV_DEBUG <<
"SNIR end" << endl;
68 EV_DEBUG <<
"Computing minimum SNIR: start = " << startArgument <<
", end = " << endArgument <<
" -> minimum SNIR = " << minSNIR << endl;
pow< s,-1 > Hz
Definition: Units.h:766
static const Dimension time
Shortcut to the time Dimension, same as 'Dimension("time")', but spares the parsing of a string...
Definition: MappingBase.h:64
const IReception * reception
Definition: SNIRBase.h:32
const INoise * noise
Definition: SNIRBase.h:33
static simtime_t pre(simtime_t_cref t)
returns the closest value of simtime before passed value
Definition: MappingUtils.cc:426
double minSNIR
Definition: DimensionalSNIR.h:32
static const Dimension frequency
Shortcut to the frequency Dimension, same as 'Dimension("frequency")', but spares the parsing of a st...
Definition: MappingBase.h:68
static Mapping * divide(const ConstMapping &f1, const ConstMapping &f2)
Definition: MappingUtils.cc:182
virtual const simtime_t getEndTime() const =0
Returns the time when the receiver ended to receive the corresponding transmission.
#define EVSTREAM
Definition: Compat.h:36
virtual const simtime_t getStartTime() const =0
Returns the time when the receiver started to receive the corresponding transmission.
static Argument::mapped_type findMin(const ConstMapping &m, Argument::mapped_type_cref cRetNotFound=cMinNotFound)
Iterates over the passed mapping and returns value at the key entry with the smallest value...
Definition: MappingUtils.cc:322