Spectrum Wifi Phy Filter Test. More...
Public Member Functions | |
SpectrumWifiPhyFilterTest () | |
SpectrumWifiPhyFilterTest (std::string name) | |
Constructor. More... | |
virtual | ~SpectrumWifiPhyFilterTest () |
Public Member Functions inherited from ns3::TestCase | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
Private Member Functions | |
void | DoRun (void) override |
Implementation to actually run this TestCase. More... | |
void | DoSetup (void) override |
Implementation to do any local setup required for this TestCase. More... | |
void | DoTeardown (void) override |
Implementation to do any local setup required for this TestCase. More... | |
void | RunOne () |
Run one function. More... | |
void | RxCallback (Ptr< const Packet > p, RxPowerWattPerChannelBand rxPowersW) |
Callback triggered when a packet is received by the PHYs. More... | |
void | SendPpdu (void) |
Send PPDU function. More... | |
Private Attributes | |
std::set< WifiSpectrumBand > | m_ruBands |
spectrum bands associated to all the RUs More... | |
uint16_t | m_rxChannelWidth |
RX channel width (MHz) More... | |
Ptr< ExtSpectrumWifiPhy > | m_rxPhy |
RX PHY. More... | |
uint16_t | m_txChannelWidth |
TX channel width (MHz) More... | |
Ptr< ExtSpectrumWifiPhy > | m_txPhy |
TX PHY. More... | |
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) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
Get the parent of this TestCsse. More... | |
bool | IsStatusFailure (void) const |
Check if any tests failed. More... | |
bool | IsStatusSuccess (void) const |
Check if all tests passed. More... | |
void | SetDataDir (std::string directory) |
Set the data directory where reference trace files can be found. More... | |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
Log the failure of this TestCase. More... | |
bool | MustAssertOnFailure (void) const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure (void) const |
Check if this run should continue on failure. More... | |
std::string | CreateDataDirFilename (std::string filename) |
Construct the full path to a file in the data directory. More... | |
std::string | CreateTempDirFilename (std::string filename) |
Construct the full path to a file in a temporary directory. More... | |
Spectrum Wifi Phy Filter Test.
Definition at line 336 of file spectrum-wifi-phy-test.cc.
SpectrumWifiPhyFilterTest::SpectrumWifiPhyFilterTest | ( | ) |
Definition at line 379 of file spectrum-wifi-phy-test.cc.
SpectrumWifiPhyFilterTest::SpectrumWifiPhyFilterTest | ( | std::string | name | ) |
Constructor.
name | reference name |
Definition at line 386 of file spectrum-wifi-phy-test.cc.
|
virtual |
Definition at line 405 of file spectrum-wifi-phy-test.cc.
|
overrideprivatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 576 of file spectrum-wifi-phy-test.cc.
References m_rxChannelWidth, m_txChannelWidth, and RunOne().
|
overrideprivatevirtual |
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test setup before DoRun is invoked.
Reimplemented from ns3::TestCase.
Definition at line 458 of file spectrum-wifi-phy-test.cc.
References ns3::Node::AddDevice(), ns3::SpectrumChannel::AddPropagationLossModel(), ns3::Object::AggregateObject(), ns3::SpectrumWifiPhy::ConfigureStandardAndBand(), ns3::SpectrumWifiPhy::CreateWifiSpectrumPhyInterface(), m_rxPhy, m_txPhy, ns3::MakeCallback(), RxCallback(), ns3::SpectrumWifiPhy::SetChannel(), ns3::WifiPhy::SetDevice(), ns3::WifiPhy::SetErrorRateModel(), ns3::WifiPhy::SetMobility(), ns3::SpectrumChannel::SetPropagationDelayModel(), ns3::ObjectBase::TraceConnectWithoutContext(), ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PHY_STANDARD_80211ax.
|
overrideprivatevirtual |
Implementation to do any local setup required for this TestCase.
Subclasses should override this method to perform any costly per-test teardown
Reimplemented from ns3::TestCase.
Definition at line 501 of file spectrum-wifi-phy-test.cc.
References ns3::Object::Dispose(), m_rxPhy, and m_txPhy.
|
private |
Run one function.
Definition at line 510 of file spectrum-wifi-phy-test.cc.
References ns3::SpectrumWifiPhy::GetGuardBandwidth(), m_ruBands, m_rxChannelWidth, m_rxPhy, m_txChannelWidth, m_txPhy, ns3::Seconds(), SendPpdu(), and ns3::SpectrumWifiPhy::SetFrequency().
Referenced by DoRun().
|
private |
Callback triggered when a packet is received by the PHYs.
p | the received packet |
rxPowersW | the received power per channel band in watts |
Definition at line 412 of file spectrum-wifi-phy-test.cc.
References ns3::SpectrumWifiPhy::GetBand(), m_ruBands, m_rxChannelWidth, m_rxPhy, m_txChannelWidth, max, min, NS_LOG_INFO, NS_TEST_ASSERT_MSG_EQ, ns3::RatioToDb(), and ns3::WToDbm().
Referenced by DoSetup().
|
private |
Send PPDU function.
Definition at line 392 of file spectrum-wifi-phy-test.cc.
References m_txChannelWidth, m_txPhy, ns3::WifiPhy::Send(), ns3::WifiMacHeader::SetType(), SU_STA_ID, ns3::WIFI_MAC_QOSDATA, and ns3::WIFI_PREAMBLE_HE_SU.
Referenced by RunOne().
|
private |
spectrum bands associated to all the RUs
Definition at line 376 of file spectrum-wifi-phy-test.cc.
Referenced by RunOne(), and RxCallback().
|
private |
RX channel width (MHz)
Definition at line 374 of file spectrum-wifi-phy-test.cc.
Referenced by DoRun(), RunOne(), and RxCallback().
|
private |
RX PHY.
Definition at line 371 of file spectrum-wifi-phy-test.cc.
Referenced by DoSetup(), DoTeardown(), RunOne(), RxCallback(), and ~SpectrumWifiPhyFilterTest().
|
private |
TX channel width (MHz)
Definition at line 373 of file spectrum-wifi-phy-test.cc.
Referenced by DoRun(), RunOne(), RxCallback(), and SendPpdu().
|
private |
TX PHY.
Definition at line 370 of file spectrum-wifi-phy-test.cc.
Referenced by DoSetup(), DoTeardown(), RunOne(), SendPpdu(), and ~SpectrumWifiPhyFilterTest().