23 #include <ns3/isotropic-antenna-model.h>
34 static std::string BuildNameString (
Angles a);
39 virtual void DoRun (
void);
47 std::ostringstream oss;
48 oss <<
"theta=" << a.
theta <<
" , phi=" << a.
phi;
56 m_expectedGain (expectedGainDb)
78 :
TestSuite (
"isotropic-antenna-model", UNIT)
smart pointer class similar to boost::intrusive_ptr
double theta
the inclination angle in radians
IsotropicAntennaModelTestSuite()
#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 ...
static IsotropicAntennaModelTestSuite staticIsotropicAntennaModelTestSuiteInstance
static std::string BuildNameString(Angles a)
virtual double GetGainDb(Angles a)
this method is expected to be re-implemented by each antenna model
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
IsotropicAntennaModelTestCase(Angles a, double expectedGainDb)
double phi
the azimuth angle in radians
virtual void DoRun(void)
Implementation to actually run this TestCase.
struct holding the azimuth and inclination angles of spherical coordinates.