23 #include "ns3/simulator.h"
24 #include "ns3/wimax-helper.h"
25 #include "ns3/net-device-container.h"
26 #include "ns3/node-container.h"
43 virtual void DoRun (
void);
48 :
TestCase (
"Test the network entry procedure")
70 ssDevs = wimax.
Install (ssNodes,
71 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
72 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
74 bsDevs = wimax.
Install (bsNodes,
75 WimaxHelper::DEVICE_TYPE_BASE_STATION,
76 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
80 for (
int i = 0; i < 10; i++)
83 "SS[" << i <<
"] IsNotRegistered");
85 Simulator::Destroy ();
102 virtual void DoRun (
void);
107 :
TestCase (
"Test if the management connections are correctly setup")
129 ssDevs = wimax.
Install (ssNodes,
130 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
131 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
133 bsDevs = wimax.
Install (bsNodes,
134 WimaxHelper::DEVICE_TYPE_BASE_STATION,
135 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
139 for (
int i = 0; i < 10; i++)
142 true,
"Management connections for SS[" << i <<
"] are not allocated");
144 Simulator::Destroy ();
Ns3WimaxNetworkEntryTestCase()
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
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
void AddTestCase(TestCase *testCase, enum TestDuration duration)
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
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
void Create(uint32_t n)
Create n nodes and append pointers to them to the end of this NodeContainer.