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 ()

Private Member Functions

virtual void DoRun (void)

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

- 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 72 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 102 of file spectrum-ideal-phy-test.cc.

ns3::SpectrumIdealPhyTestCase::~SpectrumIdealPhyTestCase ( )
virtual

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

Member Function Documentation

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

Definition at line 120 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(), ns3::g_bandwidth, ns3::g_rxBytes, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::NetDevice::GetAddress(), ns3::NetDevice::GetIfIndex(), 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::TestCase::Run(), ns3::Seconds(), 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 92 of file spectrum-ideal-phy-test.cc.

Member Data Documentation

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

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

Referenced by DoRun().

uint64_t ns3::SpectrumIdealPhyTestCase::m_phyRate
private

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

Referenced by DoRun().

bool ns3::SpectrumIdealPhyTestCase::m_rateIsAchievable
private

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

Referenced by DoRun().

double ns3::SpectrumIdealPhyTestCase::m_snrLinear
private

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

Referenced by DoRun().


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