20 #include <ns3/isotropic-antenna-model.h>
44 static std::string BuildNameString(
Angles a);
53 void DoRun()
override;
62 std::ostringstream oss;
70 m_expectedGain(expectedGainDb)
78 double actualGain = a->GetGainDb(
m_a);
82 "wrong value of the radiation pattern");
97 :
TestSuite(
"isotropic-antenna-model", UNIT)
IsotropicAntennaModel Test.
IsotropicAntennaModelTestCase(Angles a, double expectedGainDb)
Constructor.
double m_expectedGain
Expected gain.
static std::string BuildNameString(Angles a)
Build the test name.
void DoRun() override
Implementation to actually run this TestCase.
IsotropicAntennaModel TestSuite.
IsotropicAntennaModelTestSuite()
Class holding the azimuth and inclination angles of spherical coordinates.
double GetInclination() const
Getter for inclination angle.
double GetAzimuth() const
Getter for azimuth angle.
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_TEST_EXPECT_MSG_EQ_TOL(actual, limit, tol, msg)
Test that actual and expected (limit) values are equal to plus or minus some tolerance and report if ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static IsotropicAntennaModelTestSuite g_staticIsotropicAntennaModelTestSuiteInstance
Static variable for test initialization.