21 #include "ns3/net-device-container.h"
22 #include "ns3/node-container.h"
23 #include "ns3/simulator.h"
25 #include "ns3/wimax-helper.h"
45 void DoRun()
override;
49 :
TestCase(
"Test the network entry procedure")
73 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
74 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
77 WimaxHelper::DEVICE_TYPE_BASE_STATION,
78 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
82 for (
int i = 0; i < 10; i++)
87 "SS[" << i <<
"] IsNotRegistered");
108 void DoRun()
override;
112 :
TestCase(
"Test if the management connections are correctly setup")
135 ssDevs = wimax.
Install(ssNodes,
136 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
137 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
139 bsDevs = wimax.
Install(bsNodes,
140 WimaxHelper::DEVICE_TYPE_BASE_STATION,
141 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
145 for (
int i = 0; i < 10; i++)
151 "Management connections for SS[" << i <<
"] are not allocated");
153 Simulator::Destroy();
Test if the management connections are correctly setup.
void DoRun() override
Implementation to actually run this TestCase.
Ns3WimaxManagementConnectionsTestCase()
~Ns3WimaxManagementConnectionsTestCase() override
Test the network entry procedure.
void DoRun() override
Implementation to actually run this TestCase.
~Ns3WimaxNetworkEntryTestCase() override
Ns3WimaxNetworkEntryTestCase()
Ns3 Wimax SS Mac Test Suite.
holds a vector of ns3::NetDevice pointers
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
keep track of a set of node pointers.
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.
SubscriberStationNetDevice subclass of WimaxNetDevice.
bool GetAreManagementConnectionsAllocated() const
bool IsRegistered() const
void AddTestCase(TestCase *testCase, TestDuration duration=QUICK)
Add an individual child TestCase to this test suite.
helps to manage and create WimaxNetDevice objects
SchedulerType
Scheduler Type Different implementations of uplink/downlink scheduler.
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
Time Seconds(double value)
Construct a Time in the indicated unit.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static Ns3WimaxSSMacTestSuite ns3WimaxSSMacTestSuite
the test suite