propagation: Add AssignStreams to ThreeGppV2vUrbanPropagationLossModel

This commit is contained in:
Tom Henderson
2022-08-11 15:54:15 -07:00
parent 9080fdc458
commit 89a32564f7
2 changed files with 13 additions and 0 deletions

View File

@@ -195,6 +195,17 @@ ThreeGppV2vUrbanPropagationLossModel::GetShadowingCorrelationDistance (ChannelCo
return correlationDistance;
}
int64_t
ThreeGppV2vUrbanPropagationLossModel::DoAssignStreams (int64_t stream)
{
NS_LOG_FUNCTION (this);
m_normRandomVariable->SetStream (stream);
m_uniformVar->SetStream (stream + 1);
m_logNorVar->SetStream (stream + 2);
return 3;
}
// ------------------------------------------------------------------------- //
NS_OBJECT_ENSURE_REGISTERED (ThreeGppV2vHighwayPropagationLossModel);

View File

@@ -112,6 +112,8 @@ private:
*/
virtual double GetShadowingCorrelationDistance (ChannelCondition::LosConditionValue cond) const override;
virtual int64_t DoAssignStreams (int64_t stream) override;
double m_percType3Vehicles; //!< percentage of Type 3 vehicles in the scenario (i.e., trucks)
Ptr<UniformRandomVariable> m_uniformVar; //!< uniform random variable
Ptr<LogNormalRandomVariable> m_logNorVar; //!< log normal random variable