add tests and fixups

This commit is contained in:
Tim Schubert 2020-07-04 20:45:09 +02:00
parent 5f01608c61
commit c6bce1a882
6 changed files with 319 additions and 2 deletions

View file

@ -0,0 +1,40 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#ifndef LEO_PROPAGATION_LOSS_MODEL_H
#define LEO_PROPAGATION_LOSS_MODEL_H
#include "leo-mobility-model.h"
#include <ns3/object.h>
#include <ns3/propagation-loss-model.h>
namespace ns3 {
class LeoPropagationLossModel : public PropagationLossModel
{
public:
static TypeId GetTypeId (void);
LeoPropagationLossModel ();
virtual ~LeoPropagationLossModel ();
private:
/**
* Returns the Rx Power taking into account only the particular
* PropagationLossModel.
*
* \param txPowerDbm current transmission power (in dBm)
* \param a the mobility model of the source
* \param b the mobility model of the destination
* \returns the reception power after adding/multiplying propagation loss (in dBm)
*/
virtual double DoCalcRxPower (double txPowerDbm,
Ptr<MobilityModel> a,
Ptr<MobilityModel> b) const;
/**
* Subclasses must implement this; those not using random variables
* can return zero
*/
virtual int64_t DoAssignStreams (int64_t stream);
};
}
#endif /* SATELLITE_LEO_PROPAGATION_LOSS_MODEL_H */