A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::ParabolicAntennaModelTestCase Class Reference
+ Inheritance diagram for ns3::ParabolicAntennaModelTestCase:
+ Collaboration diagram for ns3::ParabolicAntennaModelTestCase:

Public Member Functions

 ParabolicAntennaModelTestCase (Angles a, double b, double o, double g, double expectedGainDb, ParabolicAntennaModelGainTestCondition cond)
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()

Static Public Member Functions

static std::string BuildNameString (Angles a, double b, double o, double g)

Private Member Functions

virtual void DoRun (void)

Private Attributes

Angles m_a
double m_b
ParabolicAntennaModelGainTestCondition m_cond
double m_expectedGain
double m_g
double m_o

Additional Inherited Members

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Detailed Description

Definition at line 41 of file test-parabolic-antenna.cc.

Constructor & Destructor Documentation

ns3::ParabolicAntennaModelTestCase::ParabolicAntennaModelTestCase ( Angles  a,
double  b,
double  o,
double  g,
double  expectedGainDb,
ParabolicAntennaModelGainTestCondition  cond 
)

Definition at line 70 of file test-parabolic-antenna.cc.

Member Function Documentation

std::string ns3::ParabolicAntennaModelTestCase::BuildNameString ( Angles  a,
double  b,
double  o,
double  g 
)
static

Definition at line 59 of file test-parabolic-antenna.cc.

References ns3::Angles::phi, and ns3::Angles::theta.

Referenced by DoRun().

+ Here is the caller graph for this function:

void ns3::ParabolicAntennaModelTestCase::DoRun ( void  )
privatevirtual

Definition at line 82 of file test-parabolic-antenna.cc.

References BuildNameString(), ns3::EQUAL, ns3::LESSTHAN, m_a, m_b, m_cond, m_expectedGain, m_g, m_o, NS_LOG_FUNCTION, NS_TEST_EXPECT_MSG_EQ_TOL, and NS_TEST_EXPECT_MSG_LT.

+ Here is the call graph for this function:

Member Data Documentation

Angles ns3::ParabolicAntennaModelTestCase::m_a
private

Definition at line 51 of file test-parabolic-antenna.cc.

Referenced by DoRun().

double ns3::ParabolicAntennaModelTestCase::m_b
private

Definition at line 52 of file test-parabolic-antenna.cc.

Referenced by DoRun().

ParabolicAntennaModelGainTestCondition ns3::ParabolicAntennaModelTestCase::m_cond
private

Definition at line 56 of file test-parabolic-antenna.cc.

Referenced by DoRun().

double ns3::ParabolicAntennaModelTestCase::m_expectedGain
private

Definition at line 55 of file test-parabolic-antenna.cc.

Referenced by DoRun().

double ns3::ParabolicAntennaModelTestCase::m_g
private

Definition at line 54 of file test-parabolic-antenna.cc.

Referenced by DoRun().

double ns3::ParabolicAntennaModelTestCase::m_o
private

Definition at line 53 of file test-parabolic-antenna.cc.

Referenced by DoRun().


The documentation for this class was generated from the following file: