26 #include <ns3/double.h>
28 #include <ns3/string.h>
30 NS_LOG_COMPONENT_DEFINE(
"SatFreeSpaceLoss");
35 NS_OBJECT_ENSURE_REGISTERED(SatFreeSpaceLoss);
41 TypeId(
"ns3::SatFreeSpaceLoss").SetParent<Object>().AddConstructor<SatFreeSpaceLoss>();
52 NS_LOG_FUNCTION(
this << frequencyHz);
64 NS_LOG_FUNCTION(
this << frequencyHz);
67 double distance = a->GetDistanceFrom(b);
static TypeId GetTypeId(void)
Get the type ID.
virtual double GetFsl(Ptr< MobilityModel > a, Ptr< MobilityModel > b, double frequencyHz) const
Calculate the free-space loss in linear format.
SatFreeSpaceLoss()
Default constructor.
virtual double GetFsldB(Ptr< MobilityModel > a, Ptr< MobilityModel > b, double frequencyHz) const
Calculate the free-space loss in dB.
static T LinearToDb(T linear)
Converts linear to decibels.
constexpr double SPEED_OF_LIGHT
Constant definition for the speed of light in m/s.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.