ns-3
ns3::ShadowingLossModel Class Reference

This class models the propagation loss model due to the shadowing. More...

#include <shadowing-loss-model.h>

Inheritance diagram for ns3::ShadowingLossModel:
Collaboration diagram for ns3::ShadowingLossModel:

List of all members.

Public Member Functions

 ShadowingLossModel (double mu, double sigma, double samplingPeriod)
void SetValue (double sh)
double GetValue (void)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::ShadowingLossModel.

Detailed Description

This class models the propagation loss model due to the shadowing.


Constructor & Destructor Documentation

ns3::ShadowingLossModel::ShadowingLossModel ( double  mu,
double  sigma,
double  samplingPeriod 
)
Parameters:
mumu parameter of the lognormal distribution
sigmasigma parameter of the lognormal distribution
samplingPeriodthe interval every time the model should be updated

References ns3::RandomVariable::GetValue(), ns3::DiscreteTimeLossModel::SetLastUpdate(), ns3::DiscreteTimeLossModel::SetSamplingPeriod(), and SetValue().


Member Function Documentation

This method returns the TypeId associated to ns3::ShadowingLossModel.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::DiscreteTimeLossModel/$ns3::ShadowingLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::ShadowingLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::DiscreteTimeLossModel/$ns3::ShadowingLossModel
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::ShadowingLossModel

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::DiscreteTimeLossModel.

References ns3::TypeId::SetParent().

Get the value of the shadowing loss model, expressed in dB

Returns:
the value of the shadowing loss model

References ns3::RandomVariable::GetValue(), ns3::DiscreteTimeLossModel::NeedForUpdate(), NS_LOG_FUNCTION, ns3::DiscreteTimeLossModel::SetLastUpdate(), and SetValue().

void ns3::ShadowingLossModel::SetValue ( double  sh)

Set the value of the shadowing loss model, expressed in dB

Parameters:
shthe shadowing loss value

References NS_LOG_FUNCTION.

Referenced by GetValue(), and ShadowingLossModel().


The documentation for this class was generated from the following files: