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