|
INET Framework for OMNeT++/OMNEST
|
#include <MediumLimitCache.h>
|
|
| virtual Coord | getMinConstraintArea () const override |
| | Returns the minimum possible position among the radios, the coordinate values are in the range (-infinity, +infinity) or NaN if unspecified. More...
|
| |
| virtual Coord | getMaxConstraintArea () const override |
| | Returns the maximum possible position among the radios, the coordinate values are in the range (-infinity, +infinity) or NaN if unspecified. More...
|
| |
| virtual mps | getMaxSpeed () const override |
| | Returns the maximum possible speed among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual W | getMaxTransmissionPower () const override |
| | Returns the maximum possible transmission power among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual W | getMinInterferencePower () const override |
| | Returns the minimum possible interference power among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual W | getMinReceptionPower () const override |
| | Returns the minimum possible reception power among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual double | getMaxAntennaGain () const override |
| | Returns the maximum possible antenna gain among the radios, the value is in the range [1, +infinity) or NaN if unspecified. More...
|
| |
| virtual const simtime_t & | getMinInterferenceTime () const override |
| | Returns the minimum required signal interference time among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual const simtime_t & | getMaxTransmissionDuration () const override |
| | Returns the maximum possible transmission durations among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual m | getMaxCommunicationRange () const override |
| | Returns the maximum possible communication range among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual m | getMaxInterferenceRange () const override |
| | Returns the maximum possible interference range among the radios, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual m | getMaxCommunicationRange (const IRadio *radio) const override |
| | Returns the maximum possible communication range for a given radio, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual m | getMaxInterferenceRange (const IRadio *radio) const override |
| | Returns the maximum possible interference range for a given radio, the value is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual | ~IPrintableObject () |
| |
| virtual std::string | printToString () const |
| |
| virtual std::string | printToString (int level, int evFlags=0) const |
| |
| virtual std::string | getInfoStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDetailStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDebugStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getTraceStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getCompleteStringRepresentation (int evFlags=0) const |
| |
|
| Coord | minConstraintArea |
| | The constraint area minimum among the radios is in the range [-infinity, +infinity] or NaN if unspecified. More...
|
| |
| Coord | maxConstraintArea |
| | The constraint area maximum among the radios is in the range [-infinity, +infinity] or NaN if unspecified. More...
|
| |
| mps | maxSpeed |
| | The maximum speed among the radios is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| W | maxTransmissionPower |
| | The maximum transmission power among the radio transmitters is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| W | minInterferencePower |
| | The minimum interference power among the radio receivers is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| W | minReceptionPower |
| | The minimum reception power among the radio receivers is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| double | maxAntennaGain |
| | The maximum gain among the radio antennas is in the range [1, +infinity). More...
|
| |
| simtime_t | minInterferenceTime |
| | The minimum overlapping in time needed to consider two transmissions interfering. More...
|
| |
| simtime_t | maxTransmissionDuration |
| | The maximum transmission duration of a radio signal. More...
|
| |
| m | maxCommunicationRange |
| | The maximum communication range where a transmission can still be potentially successfully received is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| m | maxInterferenceRange |
| | The maximum interference range where a transmission is still considered to some effect on other transmissions is in the range [0, +infinity) or NaN if unspecified. More...
|
| |
| virtual int | numInitStages () const override |
| |
| virtual void | initialize (int stage) override |
| |
◆ MediumLimitCache()
| inet::physicallayer::MediumLimitCache::MediumLimitCache |
( |
| ) |
|
◆ addRadio()
| void inet::physicallayer::MediumLimitCache::addRadio |
( |
const IRadio * |
radio | ) |
|
|
overridevirtual |
◆ computeMaxAntennaGain()
| double inet::physicallayer::MediumLimitCache::computeMaxAntennaGain |
( |
| ) |
const |
|
protectedvirtual |
◆ computeMaxCommunicationRange()
| m inet::physicallayer::MediumLimitCache::computeMaxCommunicationRange |
( |
| ) |
const |
|
protectedvirtual |
◆ computeMaxConstreaintArea()
| Coord inet::physicallayer::MediumLimitCache::computeMaxConstreaintArea |
( |
| ) |
const |
|
protectedvirtual |
225 for (
const auto radio :
radios) {
226 if (radio !=
nullptr) {
227 const IMobility *mobility = radio->getAntenna()->getMobility();
Referenced by updateLimits().
◆ computeMaxInterferenceRange()
| m inet::physicallayer::MediumLimitCache::computeMaxInterferenceRange |
( |
| ) |
const |
|
protectedvirtual |
◆ computeMaxRange()
| m inet::physicallayer::MediumLimitCache::computeMaxRange |
( |
W |
maxTransmissionPower, |
|
|
W |
minReceptionPower |
|
) |
| const |
|
protectedvirtual |
◆ computeMaxSpeed()
| mps inet::physicallayer::MediumLimitCache::computeMaxSpeed |
( |
| ) |
const |
|
protectedvirtual |
◆ computeMaxTransmissionDuration()
| const simtime_t inet::physicallayer::MediumLimitCache::computeMaxTransmissionDuration |
( |
| ) |
const |
|
protectedvirtual |
207 return simtime_t(par(
"maxTransmissionDuration"));
Referenced by updateLimits().
◆ computeMaxTransmissionPower()
| W inet::physicallayer::MediumLimitCache::computeMaxTransmissionPower |
( |
| ) |
const |
|
protectedvirtual |
◆ computeMinConstraintArea()
| Coord inet::physicallayer::MediumLimitCache::computeMinConstraintArea |
( |
| ) |
const |
|
protectedvirtual |
213 for (
const auto radio :
radios) {
214 if (radio !=
nullptr) {
215 const IMobility *mobility = radio->getAntenna()->getMobility();
Referenced by updateLimits().
◆ computeMinInterferencePower()
| W inet::physicallayer::MediumLimitCache::computeMinInterferencePower |
( |
| ) |
const |
|
protectedvirtual |
155 for (
const auto radio :
radios) {
156 if (radio !=
nullptr && radio->getReceiver() !=
nullptr)
Referenced by updateLimits().
◆ computeMinInterferenceTime()
| const simtime_t inet::physicallayer::MediumLimitCache::computeMinInterferenceTime |
( |
| ) |
const |
|
protectedvirtual |
202 return simtime_t(par(
"minInterferenceTime"));
Referenced by updateLimits().
◆ computeMinReceptionPower()
| W inet::physicallayer::MediumLimitCache::computeMinReceptionPower |
( |
| ) |
const |
|
protectedvirtual |
165 for (
const auto radio :
radios) {
166 if (radio !=
nullptr && radio->getReceiver() !=
nullptr)
Referenced by updateLimits().
◆ getMaxAntennaGain()
| virtual double inet::physicallayer::MediumLimitCache::getMaxAntennaGain |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMaxCommunicationRange() [1/2]
| virtual m inet::physicallayer::MediumLimitCache::getMaxCommunicationRange |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMaxCommunicationRange() [2/2]
| m inet::physicallayer::MediumLimitCache::getMaxCommunicationRange |
( |
const IRadio * |
radio | ) |
const |
|
overridevirtual |
Returns the maximum possible communication range for a given radio, the value is in the range [0, +infinity) or NaN if unspecified.
Implements inet::physicallayer::IMediumLimitCache.
247 return radio->getTransmitter()->getMaxCommunicationRange();
◆ getMaxConstraintArea()
| virtual Coord inet::physicallayer::MediumLimitCache::getMaxConstraintArea |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the maximum possible position among the radios, the coordinate values are in the range (-infinity, +infinity) or NaN if unspecified.
Implements inet::physicallayer::IMediumLimitCache.
◆ getMaxInterferenceRange() [1/2]
| virtual m inet::physicallayer::MediumLimitCache::getMaxInterferenceRange |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMaxInterferenceRange() [2/2]
| m inet::physicallayer::MediumLimitCache::getMaxInterferenceRange |
( |
const IRadio * |
radio | ) |
const |
|
overridevirtual |
Returns the maximum possible interference range for a given radio, the value is in the range [0, +infinity) or NaN if unspecified.
Implements inet::physicallayer::IMediumLimitCache.
239 return radio->getTransmitter()->getMaxInterferenceRange();
◆ getMaxSpeed()
| virtual mps inet::physicallayer::MediumLimitCache::getMaxSpeed |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMaxTransmissionDuration()
| virtual const simtime_t& inet::physicallayer::MediumLimitCache::getMaxTransmissionDuration |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMaxTransmissionPower()
| virtual W inet::physicallayer::MediumLimitCache::getMaxTransmissionPower |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMinConstraintArea()
| virtual Coord inet::physicallayer::MediumLimitCache::getMinConstraintArea |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the minimum possible position among the radios, the coordinate values are in the range (-infinity, +infinity) or NaN if unspecified.
Implements inet::physicallayer::IMediumLimitCache.
◆ getMinInterferencePower()
| virtual W inet::physicallayer::MediumLimitCache::getMinInterferencePower |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMinInterferenceTime()
| virtual const simtime_t& inet::physicallayer::MediumLimitCache::getMinInterferenceTime |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getMinReceptionPower()
| virtual W inet::physicallayer::MediumLimitCache::getMinReceptionPower |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ initialize()
| void inet::physicallayer::MediumLimitCache::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
72 radioMedium = check_and_cast<IRadioMedium *>(getParentModule());
◆ numInitStages()
| virtual int inet::physicallayer::MediumLimitCache::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ printToStream()
| std::ostream & inet::physicallayer::MediumLimitCache::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
89 stream <<
"RadioMediumLimits";
◆ removeRadio()
| void inet::physicallayer::MediumLimitCache::removeRadio |
( |
const IRadio * |
radio | ) |
|
|
overridevirtual |
◆ updateLimits()
| void inet::physicallayer::MediumLimitCache::updateLimits |
( |
| ) |
|
|
protectedvirtual |
◆ maxAntennaGain
| double inet::physicallayer::MediumLimitCache::maxAntennaGain |
|
protected |
◆ maxCommunicationRange
| m inet::physicallayer::MediumLimitCache::maxCommunicationRange |
|
protected |
◆ maxConstraintArea
| Coord inet::physicallayer::MediumLimitCache::maxConstraintArea |
|
protected |
◆ maxInterferenceRange
| m inet::physicallayer::MediumLimitCache::maxInterferenceRange |
|
protected |
◆ maxSpeed
| mps inet::physicallayer::MediumLimitCache::maxSpeed |
|
protected |
◆ maxTransmissionDuration
| simtime_t inet::physicallayer::MediumLimitCache::maxTransmissionDuration |
|
protected |
◆ maxTransmissionPower
| W inet::physicallayer::MediumLimitCache::maxTransmissionPower |
|
protected |
◆ minConstraintArea
| Coord inet::physicallayer::MediumLimitCache::minConstraintArea |
|
protected |
◆ minInterferencePower
| W inet::physicallayer::MediumLimitCache::minInterferencePower |
|
protected |
◆ minInterferenceTime
| simtime_t inet::physicallayer::MediumLimitCache::minInterferenceTime |
|
protected |
◆ minReceptionPower
| W inet::physicallayer::MediumLimitCache::minReceptionPower |
|
protected |
◆ radioMedium
| const IRadioMedium* inet::physicallayer::MediumLimitCache::radioMedium |
|
protected |
◆ radios
| std::vector<const IRadio *> inet::physicallayer::MediumLimitCache::radios |
|
protected |
The documentation for this class was generated from the following files:
double maxAntennaGain
The maximum gain among the radio antennas is in the range [1, +infinity).
Definition: MediumLimitCache.h:64
std::vector< const IRadio * > radios
The list of communicating radios on the medium.
Definition: MediumLimitCache.h:28
Coord min(const Coord &a) const
Returns the minimal coordinates.
Definition: Coord.h:310
T minIgnoreNaN(T a, T b)
Definition: MediumLimitCache.cc:17
virtual const IPathLoss * getPathLoss() const =0
Returns the signal path loss model of this medium.
pow< s, -1 > Hz
Definition: Units.h:935
compose< m, pow< s, -1 > > mps
Definition: Units.h:1151
Coord max(const Coord &a) const
Returns the maximal coordinates.
Definition: Coord.h:317
double dBmW2mW(double dBm)
Converts a dBmW value to mW.
Definition: INETMath.h:163
mps maxSpeed
The maximum speed among the radios is in the range [0, +infinity) or NaN if unspecified.
Definition: MediumLimitCache.h:45
void remove(std::vector< T > &v, const Tk &a)
Definition: stlutils.h:107
compose< J, pow< s, -1 > > W
Definition: Units.h:939
virtual mps getPropagationSpeed() const =0
Returns the theoretical propagation speed of radio signals in the range (0, +infinity).
virtual double computeMaxAntennaGain() const
Definition: MediumLimitCache.cc:172
Coord maxConstraintArea
The constraint area maximum among the radios is in the range [-infinity, +infinity] or NaN if unspeci...
Definition: MediumLimitCache.h:40
milli< W >::type mW
Definition: Units.h:1080
const IRadioMedium * radioMedium
The corresponding radio medium is never nullptr.
Definition: MediumLimitCache.h:23
virtual const IPropagation * getPropagation() const =0
Returns the signal propagation model of this medium.
virtual void updateLimits()
Definition: MediumLimitCache.cc:105
W minInterferencePower
The minimum interference power among the radio receivers is in the range [0, +infinity) or NaN if uns...
Definition: MediumLimitCache.h:55
virtual m computeMaxInterferenceRange() const
Definition: MediumLimitCache.cc:195
virtual m computeRange(mps propagationSpeed, Hz frequency, double loss) const =0
Returns the range for the given loss factor.
#define EV_FIELD(...)
Definition: INETDefs.h:112
double dB2fraction(double dB)
Converts a dB value to fraction.
Definition: INETMath.h:153
virtual const simtime_t computeMaxTransmissionDuration() const
Definition: MediumLimitCache.cc:205
#define NaN
Definition: INETMath.h:91
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
virtual mps computeMaxSpeed() const
Definition: MediumLimitCache.cc:132
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
#define NUM_INIT_STAGES
Definition: InitStageRegistry.h:73
virtual Coord computeMaxConstreaintArea() const
Definition: MediumLimitCache.cc:222
pow< internal::none, 0 > unit
Definition: Units.h:72
m maxInterferenceRange
The maximum interference range where a transmission is still considered to some effect on other trans...
Definition: MediumLimitCache.h:87
virtual const simtime_t computeMinInterferenceTime() const
Definition: MediumLimitCache.cc:200
virtual W computeMinReceptionPower() const
Definition: MediumLimitCache.cc:162
W minReceptionPower
The minimum reception power among the radio receivers is in the range [0, +infinity) or NaN if unspec...
Definition: MediumLimitCache.h:60
Coord minConstraintArea
The constraint area minimum among the radios is in the range [-infinity, +infinity] or NaN if unspeci...
Definition: MediumLimitCache.h:35
const value_type & get() const
Definition: Units.h:108
virtual W computeMinInterferencePower() const
Definition: MediumLimitCache.cc:152
static const Coord NIL
Constant with all values set to 0.
Definition: Coord.h:26
virtual W computeMaxTransmissionPower() const
Definition: MediumLimitCache.cc:142
simtime_t maxTransmissionDuration
The maximum transmission duration of a radio signal.
Definition: MediumLimitCache.h:75
virtual Coord computeMinConstraintArea() const
Definition: MediumLimitCache.cc:210
T maxIgnoreNaN(T a, T b)
Definition: MediumLimitCache.cc:29
value< double, units::m > m
Definition: Units.h:1233
virtual m computeMaxCommunicationRange() const
Definition: MediumLimitCache.cc:190
virtual m computeMaxRange(W maxTransmissionPower, W minReceptionPower) const
Definition: MediumLimitCache.cc:182
simtime_t minInterferenceTime
The minimum overlapping in time needed to consider two transmissions interfering.
Definition: MediumLimitCache.h:70
m maxCommunicationRange
The maximum communication range where a transmission can still be potentially successfully received i...
Definition: MediumLimitCache.h:81
W maxTransmissionPower
The maximum transmission power among the radio transmitters is in the range [0, +infinity) or NaN if ...
Definition: MediumLimitCache.h:50