ns3::SatFreeSpaceLoss Class Reference

This class is responsible of calculating the free space loss (FSL) based on two given node positions and used (center) frequency. More...

#include "satellite-free-space-loss.h"

+ Inheritance diagram for ns3::SatFreeSpaceLoss:
+ Collaboration diagram for ns3::SatFreeSpaceLoss:

Public Member Functions

 SatFreeSpaceLoss ()
 Default constructor. More...
 
 ~SatFreeSpaceLoss ()
 
virtual double GetFsl (Ptr< MobilityModel > a, Ptr< MobilityModel > b, double frequencyHz) const
 Calculate the free-space loss in linear format. More...
 
virtual double GetFsldB (Ptr< MobilityModel > a, Ptr< MobilityModel > b, double frequencyHz) const
 Calculate the free-space loss in dB. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Detailed Description

This class is responsible of calculating the free space loss (FSL) based on two given node positions and used (center) frequency.

Definition at line 35 of file satellite-free-space-loss.h.

Constructor & Destructor Documentation

◆ SatFreeSpaceLoss()

ns3::SatFreeSpaceLoss::SatFreeSpaceLoss ( )

Default constructor.

Definition at line 45 of file satellite-free-space-loss.cc.

◆ ~SatFreeSpaceLoss()

ns3::SatFreeSpaceLoss::~SatFreeSpaceLoss ( )
inline

Definition at line 49 of file satellite-free-space-loss.h.

Member Function Documentation

◆ GetFsl()

double ns3::SatFreeSpaceLoss::GetFsl ( Ptr< MobilityModel >  a,
Ptr< MobilityModel >  b,
double  frequencyHz 
) const
virtual

Calculate the free-space loss in linear format.

Parameters
aMobility model of node a
bMobility model of node b
frequencyHzFrequency in Hertz
Returns
the free space loss as ratio.

Definition at line 62 of file satellite-free-space-loss.cc.

References ns3::SatConstVariables::SPEED_OF_LIGHT.

Referenced by GetFsldB().

+ Here is the caller graph for this function:

◆ GetFsldB()

double ns3::SatFreeSpaceLoss::GetFsldB ( Ptr< MobilityModel >  a,
Ptr< MobilityModel >  b,
double  frequencyHz 
) const
virtual

Calculate the free-space loss in dB.

Parameters
aMobility model of node a
bMobility model of node b
frequencyHzFrequency in Hertz
Returns
the free space loss as dBs.

Definition at line 50 of file satellite-free-space-loss.cc.

References GetFsl(), and ns3::SatUtils::LinearToDb().

Referenced by SatFreeSpaceLossTestCase::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTypeId()

TypeId ns3::SatFreeSpaceLoss::GetTypeId ( void  )
static

Get the type ID.

Returns
the object TypeId

Definition at line 38 of file satellite-free-space-loss.cc.


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