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