Spectrum Wifi Phy Filter Test. More...
Public Member Functions | |
| SpectrumWifiPhyFilterTest () | |
| SpectrumWifiPhyFilterTest (std::string name) | |
| Constructor. | |
| ~SpectrumWifiPhyFilterTest () override | |
| Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| Caller graph was not generated because of its size. | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Private Member Functions | |
| void | DoRun () override |
| Implementation to actually run this TestCase. | |
| void | DoSetup () override |
| Implementation to do any local setup required for this TestCase. | |
| void | DoTeardown () override |
| Implementation to do any local setup required for this TestCase. | |
| void | RunOne () |
| Run one function. | |
| void | RxCallback (Ptr< const Packet > p, RxPowerWattPerChannelBand rxPowersW) |
| Callback triggered when a packet is received by the PHYs. | |
| void | SendPpdu () |
| Send PPDU function. | |
Private Attributes | |
| MHz_u | m_rxChannelWidth |
| RX channel width. | |
| Ptr< ExtSpectrumWifiPhy > | m_rxPhy |
| RX PHY. | |
| MHz_u | m_txChannelWidth |
| TX channel width. | |
| Ptr< ExtSpectrumWifiPhy > | m_txPhy |
| TX PHY. | |
Additional Inherited Members | |
| Public Types inherited from ns3::TestCase | |
| enum class | Duration { 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. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const |
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const |
| Check if any tests failed. | |
| bool | IsStatusSuccess () const |
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. | |
| 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. | |
| bool | MustAssertOnFailure () const |
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const |
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. | |
Spectrum Wifi Phy Filter Test.
Definition at line 456 of file spectrum-wifi-phy-test.cc.
| SpectrumWifiPhyFilterTest::SpectrumWifiPhyFilterTest | ( | ) |
Definition at line 497 of file spectrum-wifi-phy-test.cc.
References ns3::TestCase::TestCase(), m_rxChannelWidth, and m_txChannelWidth.
| SpectrumWifiPhyFilterTest::SpectrumWifiPhyFilterTest | ( | std::string | name | ) |
Constructor.
| name | reference name |
Definition at line 504 of file spectrum-wifi-phy-test.cc.
References ns3::TestCase::TestCase().
|
override |
Definition at line 532 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 731 of file spectrum-wifi-phy-test.cc.
References ns3::Simulator::Destroy(), 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 602 of file spectrum-wifi-phy-test.cc.
References ns3::CreateObject(), m_rxPhy, m_txPhy, ns3::MakeCallback(), RxCallback(), and ns3::WIFI_STANDARD_80211be.
|
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 656 of file spectrum-wifi-phy-test.cc.
|
private |
Run one function.
Definition at line 665 of file spectrum-wifi-phy-test.cc.
References ns3::WifiPhyOperatingChannel::FindFirst(), m_rxChannelWidth, m_rxPhy, m_txChannelWidth, m_txPhy, ns3::Simulator::Run(), ns3::Simulator::Schedule(), ns3::Seconds(), SendPpdu(), ns3::WIFI_PHY_BAND_6GHZ, and ns3::WIFI_STANDARD_80211be.
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 539 of file spectrum-wifi-phy-test.cc.
References ns3::Count20MHzSubchannels(), m_rxChannelWidth, m_rxPhy, m_txChannelWidth, NS_LOG_INFO, NS_TEST_ASSERT_MSG_EQ, ns3::RatioToDb(), and ns3::WToDbm().
Referenced by DoSetup().
|
private |
Send PPDU function.
Definition at line 510 of file spectrum-wifi-phy-test.cc.
References ns3::Create(), ns3::EhtPhy::GetEhtMcs0(), m_txChannelWidth, m_txPhy, ns3::NanoSeconds(), ns3::WifiMacHeader::SetAddr1(), ns3::WifiMacHeader::SetQosTid(), ns3::WifiMacHeader::SetSequenceNumber(), ns3::WifiMacHeader::SetType(), ns3::SU_STA_ID, ns3::WIFI_MAC_QOSDATA, ns3::WIFI_MIN_TX_PWR_LEVEL, and ns3::WIFI_PREAMBLE_EHT_MU.
Referenced by RunOne().
|
private |
RX channel width.
Definition at line 494 of file spectrum-wifi-phy-test.cc.
Referenced by SpectrumWifiPhyFilterTest(), DoRun(), RunOne(), and RxCallback().
|
private |
RX PHY.
Definition at line 491 of file spectrum-wifi-phy-test.cc.
Referenced by ~SpectrumWifiPhyFilterTest(), DoSetup(), DoTeardown(), RunOne(), and RxCallback().
|
private |
TX channel width.
Definition at line 493 of file spectrum-wifi-phy-test.cc.
Referenced by SpectrumWifiPhyFilterTest(), DoRun(), RunOne(), RxCallback(), and SendPpdu().
|
private |
TX PHY.
Definition at line 490 of file spectrum-wifi-phy-test.cc.
Referenced by ~SpectrumWifiPhyFilterTest(), DoSetup(), DoTeardown(), RunOne(), and SendPpdu().