23 #include <ns3/double.h>
24 #include <ns3/parabolic-antenna-model.h>
25 #include <ns3/simulator.h>
49 virtual void DoRun (
void);
61 std::ostringstream oss;
62 oss <<
"theta=" << a.
theta <<
" , phi=" << a.
phi
63 <<
", beamdwidth=" << b <<
"deg"
64 <<
", orientation=" << o
65 <<
", maxAttenuation=" << g <<
" dB";
71 :
TestCase (BuildNameString (a, b, o, g)),
76 m_expectedGain (expectedGainDb),
90 double actualGain = a->GetGainDb (
m_a);
114 :
TestSuite (
"parabolic-antenna-model", UNIT)
smart pointer class similar to boost::intrusive_ptr
#define NS_LOG_FUNCTION(parameters)
static std::string BuildNameString(Angles a, double b, double o, double g)
ParabolicAntennaModelTestSuite()
double DegreesToRadians(double degrees)
converts degrees to radians
ParabolicAntennaModelGainTestCondition
double theta
the inclination angle in radians
#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 ...
virtual void DoRun(void)
Implementation to actually run this TestCase.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
ParabolicAntennaModelTestCase(Angles a, double b, double o, double g, double expectedGainDb, ParabolicAntennaModelGainTestCondition cond)
double phi
the azimuth angle in radians
#define NS_TEST_EXPECT_MSG_LT(actual, limit, msg)
Test that an actual value is less than a limit and report if not.
static ParabolicAntennaModelTestSuite staticParabolicAntennaModelTestSuiteInstance
ParabolicAntennaModelGainTestCondition m_cond
struct holding the azimuth and inclination angles of spherical coordinates.
Hold a floating point type.
NS_LOG_COMPONENT_DEFINE("TestParabolicAntennaModel")