Trace channel occupany on each link of MLDs. More...
Inheritance diagram for MLOTestCase:
Collaboration diagram for MLOTestCase:Public Member Functions | |
| MLOTestCase () | |
| Constructor. | |
Public Member Functions inherited from WifiCoTraceHelperBaseTestCase | |
| WifiCoTraceHelperBaseTestCase (const std::string &testName) | |
| Constructor. | |
Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| 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. | |
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 WifiCoTraceHelperBaseTestCase | |
| void | ConfigureTidToLinkMapping (const std::string &mapping) |
| A helper function that sets tid-to-link mapping. | |
| void | DisableAggregation () |
| A helper function that disables frame aggregation. | |
| const std::map< WifiPhyState, Time > & | GetChannelOccupancy (size_t nodeId, size_t linkId, WifiCoTraceHelper &coHelper) |
| It gets the channel occupancy of a link on a node measured by WifiCoTraceHelper. | |
| Ptr< PacketSocketClient > | InstallPacketSocketClient (Ptr< Node > client, Ptr< Node > server, size_t prot, Time startAfter, size_t numPkts, size_t pktLen, size_t tid) |
| A helper function that installs PacketSocketClient application on a node. | |
| void | InstallPacketSocketServer (Ptr< Node > node, Time startAfter, size_t prot) |
| A helper function that installs PacketSocketServer on a node. | |
| void | SchedulePackets (Ptr< Node > from, Ptr< Node > to, Time startAfter, size_t numPkts, size_t pktLen, size_t tid) |
| A helper function that schedules to send given number of packets from one node to another. | |
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. | |
Protected Attributes inherited from WifiCoTraceHelperBaseTestCase | |
| NetDeviceContainer | m_devices |
| Container of all devices instantiated in this test case. | |
| NodeContainer | m_nodes |
| Container of all nodes instantiated in this test case. | |
| Time | m_simulationStop {Seconds(5.0)} |
| Instant at which simulation should stop. | |
| size_t | protocol |
| A unique Protocol used in each PacketSocketClient and PacketSocketServer pair. | |
Trace channel occupany on each link of MLDs.
This test case sends a packet on each link of a MLD and asserts that WifiCoTraceHelper measures TX duration correctly on every link. It uses tid-to-link mapping to schedule a packet to a specific link.
Definition at line 451 of file wifi-co-trace-helper-test.cc.
| MLOTestCase::MLOTestCase | ( | ) |
Constructor.
Definition at line 462 of file wifi-co-trace-helper-test.cc.
References WifiCoTraceHelperBaseTestCase::WifiCoTraceHelperBaseTestCase().
Here is the call 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 469 of file wifi-co-trace-helper-test.cc.
References WifiCoTraceHelperBaseTestCase::ConfigureTidToLinkMapping(), ns3::Simulator::Destroy(), ns3::WifiCoTraceHelper::Enable(), WifiCoTraceHelperBaseTestCase::GetChannelOccupancy(), WifiCoTraceHelperBaseTestCase::m_nodes, ns3::NanoSeconds(), NS_TEST_ASSERT_MSG_EQ, ns3::Simulator::Run(), WifiCoTraceHelperBaseTestCase::SchedulePackets(), ns3::Seconds(), ns3::Simulator::Stop(), and ns3::TX.
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 524 of file wifi-co-trace-helper-test.cc.
References ns3::NodeContainer::Create(), ns3::CreateObject(), WifiCoTraceHelperBaseTestCase::DisableAggregation(), ns3::WifiPhyHelper::DLT_IEEE802_11_RADIO, ns3::PacketSocketHelper::Install(), WifiCoTraceHelperBaseTestCase::m_devices, WifiCoTraceHelperBaseTestCase::m_nodes, ns3::NanoSeconds(), ns3::Config::Set(), ns3::RngSeedManager::SetSeed(), ns3::WIFI_SPECTRUM_5_GHZ, ns3::WIFI_SPECTRUM_6_GHZ, and ns3::WIFI_STANDARD_80211be.
Here is the call graph for this function: