21#include <ns3/constant-position-mobility-model.h>
22#include <ns3/double.h>
24#include <ns3/itu-r-1411-los-propagation-loss-model.h>
26#include <ns3/string.h>
61 void DoRun()
override;
102 mma->SetPosition(Vector(0.0, 0.0,
m_hb));
108 CreateObject<ItuR1411LosPropagationLossModel>();
111 double loss = propagationLossModel->GetLoss(mma, mmb);
142 "freq=2114MHz, dist=100m"),
149 "freq=1999MHz, dist=200m"),
ItuR1411LosPropagationLossModel Test Case.
~ItuR1411LosPropagationLossModelTestCase() override
ItuR1411LosPropagationLossModelTestCase(double freq, double dist, double hb, double hm, double refValue, std::string name)
Constructor.
double m_lossRef
reference loss
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
Create a MobilityModel.
double m_freq
carrier frequency in Hz
double m_hb
height of BS in meters
void DoRun() override
Implementation to actually run this TestCase.
double m_hm
height of UT in meters
double m_dist
2D distance between UT and BS in meters
ItuR1411LosPropagationLossModel TestSuite.
ItuR1411LosPropagationLossModelTestSuite()
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Smart pointer class similar to boost::intrusive_ptr.
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_LOG_INFO(msg)
Use NS_LOG to output a message of level LOG_INFO.
#define NS_TEST_ASSERT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report and...
static ItuR1411LosPropagationLossModelTestSuite g_ituR1411LosTestSuite
Static variable for test initialization.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void LogComponentEnable(const std::string &name, LogLevel level)
Enable the logging output associated with that log component.
@ LOG_LEVEL_ALL
Print everything.