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
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
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
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static std::string BuildNameString(Angles a)
virtual double GetGainDb(Angles a)
this method is expected to be re-implemented by each antenna model
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.