PHY padding exclusion test. More...
 Inheritance diagram for TestPhyPaddingExclusion:
 Inheritance diagram for TestPhyPaddingExclusion: Collaboration diagram for TestPhyPaddingExclusion:
 Collaboration diagram for TestPhyPaddingExclusion:| Public Member Functions | |
| TestPhyPaddingExclusion () | |
| virtual | ~TestPhyPaddingExclusion () | 
|  Public Member Functions inherited from ns3::TestCase | |
| virtual | ~TestCase () | 
| Destructor.  More... | |
| std::string | GetName (void) const | 
| Private Member Functions | |
| void | CheckPhyState (Ptr< OfdmaSpectrumWifiPhy > phy, WifiPhyState expectedState) | 
| Check the PHY state.  More... | |
| void | CheckRxFromSta1 (uint32_t expectedSuccess, uint32_t expectedFailures, uint32_t expectedBytes) | 
| Check the received PSDUs from STA1.  More... | |
| void | CheckRxFromSta2 (uint32_t expectedSuccess, uint32_t expectedFailures, uint32_t expectedBytes) | 
| Check the received PSDUs from STA2.  More... | |
| void | DoCheckPhyState (Ptr< OfdmaSpectrumWifiPhy > phy, WifiPhyState expectedState) | 
| Check the PHY state.  More... | |
| 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 | GenerateInterference (Ptr< SpectrumValue > interferencePsd, Time duration) | 
| Generate interference function.  More... | |
| void | Reset () | 
| Reset function.  More... | |
| void | RunOne () | 
| Run one function.  More... | |
| void | RxFailure (Ptr< WifiPsdu > psdu) | 
| Receive failure function.  More... | |
| void | RxSuccess (Ptr< WifiPsdu > psdu, RxSignalInfo rxSignalInfo, WifiTxVector txVector, std::vector< bool > statusPerMpdu) | 
| Receive success function.  More... | |
| void | SendHeTbPpdu (uint16_t txStaId, std::size_t index, std::size_t payloadSize, Time txDuration) | 
| Send HE TB PPDU function.  More... | |
| void | StopInterference (void) | 
| Stop interference function.  More... | |
| void | VerifyEventsCleared (void) | 
| Verify all events are cleared at end of TX or RX.  More... | |
| Private Attributes | |
| uint32_t | m_countRxBytesFromSta1 | 
| count RX bytes from STA 1  More... | |
| uint32_t | m_countRxBytesFromSta2 | 
| count RX bytes from STA 2  More... | |
| uint32_t | m_countRxFailureFromSta1 | 
| count RX failure from STA 1  More... | |
| uint32_t | m_countRxFailureFromSta2 | 
| count RX failure from STA 2  More... | |
| uint32_t | m_countRxSuccessFromSta1 | 
| count RX success from STA 1  More... | |
| uint32_t | m_countRxSuccessFromSta2 | 
| count RX success from STA 2  More... | |
| Ptr< OfdmaSpectrumWifiPhy > | m_phyAp | 
| PHY of AP.  More... | |
| Ptr< WaveformGenerator > | m_phyInterferer | 
| PHY of interferer.  More... | |
| Ptr< OfdmaSpectrumWifiPhy > | m_phySta1 | 
| PHY of STA 1.  More... | |
| Ptr< OfdmaSpectrumWifiPhy > | m_phySta2 | 
| PHY of STA 2.  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... | |
PHY padding exclusion test.
Definition at line 2783 of file wifi-phy-ofdma-test.cc.
| TestPhyPaddingExclusion::TestPhyPaddingExclusion | ( | ) | 
Definition at line 2883 of file wifi-phy-ofdma-test.cc.
| 
 | virtual | 
Definition at line 2949 of file wifi-phy-ofdma-test.cc.
| 
 | private | 
Check the PHY state.
| phy | the PHY | 
| expectedState | the expected state of the PHY | 
Definition at line 3008 of file wifi-phy-ofdma-test.cc.
References DoCheckPhyState(), and third::phy.
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the received PSDUs from STA1.
| expectedSuccess | the expected number of success | 
| expectedFailures | the expected number of failures | 
| expectedBytes | the expected number of bytes | 
Definition at line 2984 of file wifi-phy-ofdma-test.cc.
References m_countRxBytesFromSta1, m_countRxFailureFromSta1, m_countRxSuccessFromSta1, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the received PSDUs from STA2.
| expectedSuccess | the expected number of success | 
| expectedFailures | the expected number of failures | 
| expectedBytes | the expected number of bytes | 
Definition at line 2992 of file wifi-phy-ofdma-test.cc.
References m_countRxBytesFromSta2, m_countRxFailureFromSta2, m_countRxSuccessFromSta2, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Check the PHY state.
| phy | the PHY | 
| expectedState | the expected state of the PHY | 
Definition at line 3015 of file wifi-phy-ofdma-test.cc.
References ns3::Now(), NS_LOG_FUNCTION, NS_TEST_ASSERT_MSG_EQ, and third::phy.
Referenced by CheckPhyState().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | overrideprivatevirtual | 
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 3132 of file wifi-phy-ofdma-test.cc.
References CCA_BUSY, CheckPhyState(), CheckRxFromSta1(), CheckRxFromSta2(), DEFAULT_CHANNEL_WIDTH, DEFAULT_FREQUENCY, ns3::BandInfo::fc, ns3::BandInfo::fh, ns3::BandInfo::fl, GenerateInterference(), IDLE, m_phyAp, ns3::MicroSeconds(), ns3::MilliSeconds(), ns3::NanoSeconds(), Reset(), RX, ns3::Seconds(), SendHeTbPpdu(), and VerifyEventsCleared().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 3037 of file wifi-phy-ofdma-test.cc.
References ns3::Node::AddDevice(), ns3::SpectrumChannel::AddPropagationLossModel(), ns3::Object::AggregateObject(), ns3::WifiPhy::AssignStreams(), ns3::SpectrumWifiPhy::ConfigureStandardAndBand(), ns3::SpectrumWifiPhy::CreateWifiSpectrumPhyInterface(), DEFAULT_CHANNEL_WIDTH, DEFAULT_FREQUENCY, m_phyAp, m_phyInterferer, m_phySta1, m_phySta2, ns3::MakeCallback(), RxFailure(), RxSuccess(), ns3::WaveformGenerator::SetChannel(), ns3::SpectrumWifiPhy::SetChannel(), ns3::SpectrumWifiPhy::SetChannelWidth(), ns3::WaveformGenerator::SetDevice(), ns3::WifiPhy::SetDevice(), ns3::WaveformGenerator::SetDutyCycle(), ns3::WifiPhy::SetErrorRateModel(), ns3::SpectrumWifiPhy::SetFrequency(), ns3::WifiPhy::SetMobility(), ns3::SpectrumChannel::SetPropagationDelayModel(), ns3::WifiPhy::SetReceiveErrorCallback(), ns3::WifiPhy::SetReceiveOkCallback(), ns3::WIFI_PHY_BAND_5GHZ, and ns3::WIFI_PHY_STANDARD_80211ax.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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 3119 of file wifi-phy-ofdma-test.cc.
References ns3::Object::Dispose(), m_phyAp, m_phyInterferer, m_phySta1, and m_phySta2.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Generate interference function.
| interferencePsd | the PSD of the interference to be generated | 
| duration | the duration of the interference | 
Definition at line 2935 of file wifi-phy-ofdma-test.cc.
References m_phyInterferer, ns3::WaveformGenerator::SetPeriod(), ns3::WaveformGenerator::SetTxPowerSpectralDensity(), ns3::WaveformGenerator::Start(), and StopInterference().
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Reset function.
Definition at line 3023 of file wifi-phy-ofdma-test.cc.
References m_countRxBytesFromSta1, m_countRxBytesFromSta2, m_countRxFailureFromSta1, m_countRxFailureFromSta2, m_countRxSuccessFromSta1, m_countRxSuccessFromSta2, m_phySta1, m_phySta2, OfdmaSpectrumWifiPhy::SetPpduUid(), and OfdmaSpectrumWifiPhy::SetTriggerFrameUid().
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Run one function.
Receive failure function.
| psdu | the PSDU | 
Definition at line 2970 of file wifi-phy-ofdma-test.cc.
References ns3::WifiPsdu::GetAddr2(), m_countRxFailureFromSta1, m_countRxFailureFromSta2, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Receive success function.
| psdu | the PSDU | 
| rxSignalInfo | the info on the received signal ( | 
| txVector | the transmit vector | 
| statusPerMpdu | reception status per MPDU | 
Definition at line 2954 of file wifi-phy-ofdma-test.cc.
References ns3::WifiPsdu::GetAddr2(), ns3::WifiPsdu::GetSize(), m_countRxBytesFromSta1, m_countRxBytesFromSta2, m_countRxSuccessFromSta1, m_countRxSuccessFromSta2, and NS_LOG_FUNCTION.
Referenced by DoSetup().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Send HE TB PPDU function.
| txStaId | the ID of the TX STA | 
| index | the RU index used for the transmission | 
| payloadSize | the size of the payload in bytes | 
| txDuration | the duration of the PPDU | 
Definition at line 2895 of file wifi-phy-ofdma-test.cc.
References DEFAULT_CHANNEL_WIDTH, m_phySta1, m_phySta2, third::phy, ns3::WifiTxVector::SetLength(), ns3::WifiTxVector::SetMode(), ns3::WifiTxVector::SetNss(), ns3::WifiTxVector::SetRu(), ns3::WifiMacHeader::SetType(), ns3::WIFI_MAC_QOSDATA, and ns3::WIFI_PREAMBLE_HE_TB.
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Stop interference function.
Definition at line 2944 of file wifi-phy-ofdma-test.cc.
References m_phyInterferer, and ns3::WaveformGenerator::Stop().
Referenced by GenerateInterference().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Verify all events are cleared at end of TX or RX.
Definition at line 3000 of file wifi-phy-ofdma-test.cc.
References OfdmaSpectrumWifiPhy::GetCurrentEvent(), m_phyAp, m_phySta1, m_phySta2, and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
count RX bytes from STA 1
Definition at line 2879 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta1(), Reset(), and RxSuccess().
| 
 | private | 
count RX bytes from STA 2
Definition at line 2880 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta2(), Reset(), and RxSuccess().
| 
 | private | 
count RX failure from STA 1
Definition at line 2877 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta1(), Reset(), and RxFailure().
| 
 | private | 
count RX failure from STA 2
Definition at line 2878 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta2(), Reset(), and RxFailure().
| 
 | private | 
count RX success from STA 1
Definition at line 2875 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta1(), Reset(), and RxSuccess().
| 
 | private | 
count RX success from STA 2
Definition at line 2876 of file wifi-phy-ofdma-test.cc.
Referenced by CheckRxFromSta2(), Reset(), and RxSuccess().
| 
 | private | 
PHY of AP.
Definition at line 2869 of file wifi-phy-ofdma-test.cc.
Referenced by DoRun(), DoSetup(), DoTeardown(), and VerifyEventsCleared().
| 
 | private | 
PHY of interferer.
Definition at line 2873 of file wifi-phy-ofdma-test.cc.
Referenced by DoSetup(), DoTeardown(), GenerateInterference(), and StopInterference().
| 
 | private | 
PHY of STA 1.
Definition at line 2870 of file wifi-phy-ofdma-test.cc.
Referenced by DoSetup(), DoTeardown(), Reset(), SendHeTbPpdu(), and VerifyEventsCleared().
| 
 | private | 
PHY of STA 2.
Definition at line 2871 of file wifi-phy-ofdma-test.cc.
Referenced by DoSetup(), DoTeardown(), Reset(), SendHeTbPpdu(), and VerifyEventsCleared().