ns-3
ns3::PathLossModel Class Reference

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

#include <path-loss-model.h>

Inheritance diagram for ns3::PathLossModel:
Collaboration diagram for ns3::PathLossModel:

List of all members.

Public Member Functions

void SetValue (double pl)
double GetValue (Ptr< const MobilityModel > a, Ptr< const MobilityModel > b)

Static Public Member Functions

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

Detailed Description

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


Member Function Documentation

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

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

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

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

Reimplemented from ns3::DiscreteTimeLossModel.

References ns3::TypeId::SetParent().

double ns3::PathLossModel::GetValue ( Ptr< const MobilityModel a,
Ptr< const MobilityModel b 
)

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

Parameters:
asender mobility
breceiver mobility
Returns:
the value of the path loss

References ns3::CalculateDistance(), NS_LOG_FUNCTION, and SetValue().

void ns3::PathLossModel::SetValue ( double  pl)

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

Parameters:
plthe path loss value

References NS_LOG_FUNCTION.

Referenced by GetValue().


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