propagation: Mark inherited functions with override keyword
This commit is contained in:
committed by
Tom Henderson
parent
9c0d3e8556
commit
a6a97ab571
@@ -138,15 +138,15 @@ private:
|
|||||||
*/
|
*/
|
||||||
Cost231PropagationLossModel & operator = (const Cost231PropagationLossModel &);
|
Cost231PropagationLossModel & operator = (const Cost231PropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm, Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
|
double DoCalcRxPower (double txPowerDbm, Ptr<MobilityModel> a, Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_BSAntennaHeight; //!< BS Antenna Height [m]
|
double m_BSAntennaHeight; //!< BS Antenna Height [m]
|
||||||
double m_SSAntennaHeight; //!< SS Antenna Height [m]
|
double m_SSAntennaHeight; //!< SS Antenna Height [m]
|
||||||
double m_lambda; //!< The wavelength
|
double m_lambda; //!< The wavelength
|
||||||
double m_minDistance; //!< minimum distance [m]
|
double m_minDistance; //!< minimum distance [m]
|
||||||
double m_frequency; //!< frequency [Hz]
|
double m_frequency; //!< frequency [Hz]
|
||||||
double m_shadowing; //!< Shadowing loss [dB]
|
double m_shadowing; //!< Shadowing loss [dB]
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,10 +86,11 @@ private:
|
|||||||
*/
|
*/
|
||||||
ItuR1411LosPropagationLossModel & operator = (const ItuR1411LosPropagationLossModel &);
|
ItuR1411LosPropagationLossModel & operator = (const ItuR1411LosPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_lambda; //!< wavelength
|
double m_lambda; //!< wavelength
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -86,10 +86,10 @@ private:
|
|||||||
*/
|
*/
|
||||||
ItuR1411NlosOverRooftopPropagationLossModel & operator = (const ItuR1411NlosOverRooftopPropagationLossModel &);
|
ItuR1411NlosOverRooftopPropagationLossModel & operator = (const ItuR1411NlosOverRooftopPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_frequency; //!< frequency in MHz
|
double m_frequency; //!< frequency in MHz
|
||||||
double m_lambda; //!< wavelength
|
double m_lambda; //!< wavelength
|
||||||
@@ -107,4 +107,3 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
#endif // ITU_R_1411_NLOS_OVER_ROOFTOP_PROPAGATION_LOSS_MODEL_H
|
#endif // ITU_R_1411_NLOS_OVER_ROOFTOP_PROPAGATION_LOSS_MODEL_H
|
||||||
|
|
||||||
|
|||||||
@@ -62,8 +62,9 @@ private:
|
|||||||
JakesPropagationLossModel & operator = (const JakesPropagationLossModel &);
|
JakesPropagationLossModel & operator = (const JakesPropagationLossModel &);
|
||||||
double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the underlying RNG stream
|
* Get the underlying RNG stream
|
||||||
|
|||||||
@@ -76,11 +76,10 @@ private:
|
|||||||
Kun2600MhzPropagationLossModel & operator = (const Kun2600MhzPropagationLossModel &);
|
Kun2600MhzPropagationLossModel & operator = (const Kun2600MhzPropagationLossModel &);
|
||||||
|
|
||||||
// inherited from PropagationLossModel
|
// inherited from PropagationLossModel
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace ns3
|
} // namespace ns3
|
||||||
|
|||||||
@@ -78,10 +78,10 @@ private:
|
|||||||
*/
|
*/
|
||||||
OkumuraHataPropagationLossModel & operator = (const OkumuraHataPropagationLossModel &);
|
OkumuraHataPropagationLossModel & operator = (const OkumuraHataPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
EnvironmentType m_environment; //!< Environment Scenario
|
EnvironmentType m_environment; //!< Environment Scenario
|
||||||
CitySize m_citySize; //!< Size of the city
|
CitySize m_citySize; //!< Size of the city
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public:
|
|||||||
* \return the number of stream indices assigned by this model
|
* \return the number of stream indices assigned by this model
|
||||||
*/
|
*/
|
||||||
int64_t AssignStreams (int64_t stream);
|
int64_t AssignStreams (int64_t stream);
|
||||||
private:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Subclasses must implement this; those not using random variables
|
* Subclasses must implement this; those not using random variables
|
||||||
* can return zero
|
* can return zero
|
||||||
@@ -89,9 +89,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
RandomPropagationDelayModel ();
|
RandomPropagationDelayModel ();
|
||||||
virtual ~RandomPropagationDelayModel ();
|
virtual ~RandomPropagationDelayModel ();
|
||||||
virtual Time GetDelay (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
|
Time GetDelay (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const override;
|
||||||
private:
|
private:
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
Ptr<RandomVariableStream> m_variable; //!< random generator
|
Ptr<RandomVariableStream> m_variable; //!< random generator
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ public:
|
|||||||
* Use the default parameters from PropagationDelayConstantSpeed.
|
* Use the default parameters from PropagationDelayConstantSpeed.
|
||||||
*/
|
*/
|
||||||
ConstantSpeedPropagationDelayModel ();
|
ConstantSpeedPropagationDelayModel ();
|
||||||
virtual Time GetDelay (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const;
|
Time GetDelay (Ptr<MobilityModel> a, Ptr<MobilityModel> b) const override;
|
||||||
/**
|
/**
|
||||||
* \param speed the new speed (m/s)
|
* \param speed the new speed (m/s)
|
||||||
*/
|
*/
|
||||||
@@ -123,7 +123,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
double GetSpeed (void) const;
|
double GetSpeed (void) const;
|
||||||
private:
|
private:
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
double m_speed; //!< speed
|
double m_speed; //!< speed
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -106,21 +106,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
int64_t AssignStreams (int64_t stream);
|
int64_t AssignStreams (int64_t stream);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
/**
|
|
||||||
* \brief Copy constructor
|
|
||||||
*
|
|
||||||
* Defined and unimplemented to avoid misuse
|
|
||||||
*/
|
|
||||||
PropagationLossModel (const PropagationLossModel &);
|
|
||||||
/**
|
|
||||||
* \brief Copy constructor
|
|
||||||
*
|
|
||||||
* Defined and unimplemented to avoid misuse
|
|
||||||
* \returns
|
|
||||||
*/
|
|
||||||
PropagationLossModel &operator = (const PropagationLossModel &);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the Rx Power taking into account only the particular
|
* Returns the Rx Power taking into account only the particular
|
||||||
* PropagationLossModel.
|
* PropagationLossModel.
|
||||||
@@ -140,6 +126,22 @@ private:
|
|||||||
*/
|
*/
|
||||||
virtual int64_t DoAssignStreams (int64_t stream) = 0;
|
virtual int64_t DoAssignStreams (int64_t stream) = 0;
|
||||||
|
|
||||||
|
private:
|
||||||
|
/**
|
||||||
|
* \brief Copy constructor
|
||||||
|
*
|
||||||
|
* Defined and unimplemented to avoid misuse
|
||||||
|
*/
|
||||||
|
PropagationLossModel (const PropagationLossModel &);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Copy constructor
|
||||||
|
*
|
||||||
|
* Defined and unimplemented to avoid misuse
|
||||||
|
* \returns
|
||||||
|
*/
|
||||||
|
PropagationLossModel &operator = (const PropagationLossModel &);
|
||||||
|
|
||||||
Ptr<PropagationLossModel> m_next; //!< Next propagation loss model in the list
|
Ptr<PropagationLossModel> m_next; //!< Next propagation loss model in the list
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -174,10 +176,12 @@ private:
|
|||||||
* \returns
|
* \returns
|
||||||
*/
|
*/
|
||||||
RandomPropagationLossModel & operator = (const RandomPropagationLossModel &);
|
RandomPropagationLossModel & operator = (const RandomPropagationLossModel &);
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
|
||||||
Ptr<MobilityModel> a,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> a,
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
Ptr<MobilityModel> b) const override;
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
Ptr<RandomVariableStream> m_variable; //!< random generator
|
Ptr<RandomVariableStream> m_variable; //!< random generator
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -318,10 +322,10 @@ private:
|
|||||||
*/
|
*/
|
||||||
FriisPropagationLossModel & operator = (const FriisPropagationLossModel &);
|
FriisPropagationLossModel & operator = (const FriisPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms a Dbm value to Watt
|
* Transforms a Dbm value to Watt
|
||||||
@@ -438,10 +442,10 @@ private:
|
|||||||
*/
|
*/
|
||||||
TwoRayGroundPropagationLossModel & operator = (const TwoRayGroundPropagationLossModel &);
|
TwoRayGroundPropagationLossModel & operator = (const TwoRayGroundPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforms a Dbm value to Watt
|
* Transforms a Dbm value to Watt
|
||||||
@@ -526,10 +530,11 @@ private:
|
|||||||
*/
|
*/
|
||||||
LogDistancePropagationLossModel & operator = (const LogDistancePropagationLossModel &);
|
LogDistancePropagationLossModel & operator = (const LogDistancePropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a default reference loss model
|
* Creates a default reference loss model
|
||||||
@@ -609,10 +614,11 @@ private:
|
|||||||
*/
|
*/
|
||||||
ThreeLogDistancePropagationLossModel& operator= (const ThreeLogDistancePropagationLossModel&);
|
ThreeLogDistancePropagationLossModel& operator= (const ThreeLogDistancePropagationLossModel&);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_distance0; //!< Beginning of the first (near) distance field
|
double m_distance0; //!< Beginning of the first (near) distance field
|
||||||
double m_distance1; //!< Beginning of the second (middle) distance field.
|
double m_distance1; //!< Beginning of the second (middle) distance field.
|
||||||
@@ -680,10 +686,11 @@ private:
|
|||||||
*/
|
*/
|
||||||
NakagamiPropagationLossModel& operator= (const NakagamiPropagationLossModel&);
|
NakagamiPropagationLossModel& operator= (const NakagamiPropagationLossModel&);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_distance1; //!< Distance1
|
double m_distance1; //!< Distance1
|
||||||
double m_distance2; //!< Distance2
|
double m_distance2; //!< Distance2
|
||||||
@@ -742,11 +749,12 @@ private:
|
|||||||
*/
|
*/
|
||||||
FixedRssLossModel & operator = (const FixedRssLossModel &);
|
FixedRssLossModel & operator = (const FixedRssLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
double m_rss; //!< the received signal strength
|
double m_rss; //!< the received signal strength
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -801,12 +809,12 @@ private:
|
|||||||
*/
|
*/
|
||||||
MatrixPropagationLossModel &operator = (const MatrixPropagationLossModel &);
|
MatrixPropagationLossModel &operator = (const MatrixPropagationLossModel &);
|
||||||
|
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> a,
|
Ptr<MobilityModel> a,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> b) const override;
|
||||||
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
|
||||||
private:
|
|
||||||
double m_default; //!< default loss
|
double m_default; //!< default loss
|
||||||
|
|
||||||
/// Typedef: Mobility models pair
|
/// Typedef: Mobility models pair
|
||||||
@@ -848,11 +856,13 @@ private:
|
|||||||
* \returns
|
* \returns
|
||||||
*/
|
*/
|
||||||
RangePropagationLossModel& operator= (const RangePropagationLossModel&);
|
RangePropagationLossModel& operator= (const RangePropagationLossModel&);
|
||||||
virtual double DoCalcRxPower (double txPowerDbm,
|
|
||||||
Ptr<MobilityModel> a,
|
double DoCalcRxPower (double txPowerDbm,
|
||||||
Ptr<MobilityModel> b) const;
|
Ptr<MobilityModel> a,
|
||||||
virtual int64_t DoAssignStreams (int64_t stream);
|
Ptr<MobilityModel> b) const override;
|
||||||
private:
|
|
||||||
|
int64_t DoAssignStreams (int64_t stream) override;
|
||||||
|
|
||||||
double m_range; //!< Maximum Transmission Range (meters)
|
double m_range; //!< Maximum Transmission Range (meters)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user