diff --git a/src/propagation/model/three-gpp-v2v-propagation-loss-model.cc b/src/propagation/model/three-gpp-v2v-propagation-loss-model.cc index 43550e8cd..e2265c5bc 100644 --- a/src/propagation/model/three-gpp-v2v-propagation-loss-model.cc +++ b/src/propagation/model/three-gpp-v2v-propagation-loss-model.cc @@ -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); diff --git a/src/propagation/model/three-gpp-v2v-propagation-loss-model.h b/src/propagation/model/three-gpp-v2v-propagation-loss-model.h index 09587f27c..61e878d82 100644 --- a/src/propagation/model/three-gpp-v2v-propagation-loss-model.h +++ b/src/propagation/model/three-gpp-v2v-propagation-loss-model.h @@ -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 m_uniformVar; //!< uniform random variable Ptr m_logNorVar; //!< log normal random variable