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

Public Member Functions

 SpectrumIdealPhyTestCase (double snrLinear, uint64_t phyRate, bool rateIsAchievable, std::string channelType)
 
virtual ~SpectrumIdealPhyTestCase ()
 
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()
 Destructor. More...
 

Private Member Functions

virtual void DoRun (void)
 Implementation to actually run this TestCase. More...
 

Static Private Member Functions

static std::string Name (std::string channelType, double snrLinear, uint64_t phyRate)
 

Private Attributes

std::string m_channelType
 
uint64_t m_phyRate
 
bool m_rateIsAchievable
 
double m_snrLinear
 

Additional Inherited Members

- Public Types inherited from ns3::TestCase
enum  TestDuration { QUICK = 1, EXTENSIVE = 2, TAKES_FOREVER = 3 }
 How long the test takes to execute. More...
 
- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
 
void AddTestCase (TestCase *testCase) NS_DEPRECATED
 Add an individual child TestCase case to this TestCase. More...
 
void AddTestCase (TestCase *testCase, enum TestDuration duration)
 Add an individual child TestCase to this test suite. More...
 
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 68 of file spectrum-ideal-phy-test.cc.

Constructor & Destructor Documentation

ns3::SpectrumIdealPhyTestCase::SpectrumIdealPhyTestCase ( double  snrLinear,
uint64_t  phyRate,
bool  rateIsAchievable,
std::string  channelType 
)

Definition at line 98 of file spectrum-ideal-phy-test.cc.

ns3::SpectrumIdealPhyTestCase::~SpectrumIdealPhyTestCase ( )
virtual

Definition at line 110 of file spectrum-ideal-phy-test.cc.

Member Function Documentation

void ns3::SpectrumIdealPhyTestCase::DoRun ( void  )
privatevirtual

Implementation to actually run this TestCase.

Subclasses should override this method to conduct their tests.

Implements ns3::TestCase.

Definition at line 116 of file spectrum-ideal-phy-test.cc.

References ns3::SpectrumChannelHelper::AddPropagationLoss(), ns3::Config::Connect(), ns3::SpectrumChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::WifiSpectrumValue5MhzFactory::CreateConstant(), ns3::WifiSpectrumValue5MhzFactory::CreateTxPowerSpectralDensity(), ns3::Simulator::Destroy(), first::devices, ns3::g_bandwidth, ns3::g_rxBytes, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Object::GetObject(), ns3::PacketSocketHelper::Install(), ns3::OnOffHelper::Install(), ns3::AdhocAlohaNoackIdealPhyHelper::Install(), ns3::MobilityHelper::Install(), m_channelType, m_phyRate, m_rateIsAchievable, m_snrLinear, ns3::MakeCallback(), NS_LOG_FUNCTION, NS_LOG_INFO, NS_TEST_ASSERT_MSG_EQ, NS_TEST_ASSERT_MSG_EQ_TOL, ns3::PhyRxEndOkTrace(), ns3::Simulator::Run(), ns3::OnOffHelper::SetAttribute(), ns3::AdhocAlohaNoackIdealPhyHelper::SetChannel(), ns3::SpectrumChannelHelper::SetChannel(), ns3::OnOffHelper::SetConstantRate(), ns3::MobilityHelper::SetMobilityModel(), ns3::AdhocAlohaNoackIdealPhyHelper::SetNoisePowerSpectralDensity(), ns3::AdhocAlohaNoackIdealPhyHelper::SetPhyAttribute(), ns3::PacketSocketAddress::SetPhysicalAddress(), ns3::MobilityHelper::SetPositionAllocator(), ns3::SpectrumChannelHelper::SetPropagationDelay(), ns3::PacketSocketAddress::SetProtocol(), ns3::PacketSocketAddress::SetSingleDevice(), ns3::AdhocAlohaNoackIdealPhyHelper::SetTxPowerSpectralDensity(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), and ns3::ApplicationContainer::Stop().

+ Here is the call graph for this function:

std::string ns3::SpectrumIdealPhyTestCase::Name ( std::string  channelType,
double  snrLinear,
uint64_t  phyRate 
)
staticprivate

Definition at line 88 of file spectrum-ideal-phy-test.cc.

Member Data Documentation

std::string ns3::SpectrumIdealPhyTestCase::m_channelType
private

Definition at line 84 of file spectrum-ideal-phy-test.cc.

Referenced by DoRun().

uint64_t ns3::SpectrumIdealPhyTestCase::m_phyRate
private

Definition at line 82 of file spectrum-ideal-phy-test.cc.

Referenced by DoRun().

bool ns3::SpectrumIdealPhyTestCase::m_rateIsAchievable
private

Definition at line 83 of file spectrum-ideal-phy-test.cc.

Referenced by DoRun().

double ns3::SpectrumIdealPhyTestCase::m_snrLinear
private

Definition at line 81 of file spectrum-ideal-phy-test.cc.

Referenced by DoRun().


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