27 #include <ns3/double.h>
29 #include <ns3/string.h>
34 NS_LOG_COMPONENT_DEFINE(
"SatFreeSpaceLoss");
39 NS_OBJECT_ENSURE_REGISTERED(SatFreeSpaceLoss);
45 TypeId(
"ns3::SatFreeSpaceLoss").SetParent<Object>().AddConstructor<SatFreeSpaceLoss>();
56 NS_LOG_FUNCTION(
this << frequencyHz);
68 NS_LOG_FUNCTION(
this << frequencyHz);
72 DynamicCast<SatMobilityModel>(a)->GetDistanceFrom(DynamicCast<SatMobilityModel>(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.