22 #include "ns3/abort.h"
24 #include "ns3/config.h"
25 #include "ns3/string.h"
26 #include "ns3/uinteger.h"
27 #include "ns3/inet-socket-address.h"
28 #include "ns3/point-to-point-helper.h"
29 #include "ns3/internet-stack-helper.h"
30 #include "ns3/ipv4-address-helper.h"
31 #include "ns3/ipv4-header.h"
32 #include "ns3/packet-sink-helper.h"
33 #include "ns3/udp-client-server-helper.h"
34 #include "ns3/udp-header.h"
35 #include "ns3/simulator.h"
36 #include "ns3/wimax-helper.h"
37 #include "ns3/mobility-helper.h"
39 #include "ns3/global-route-manager.h"
56 virtual void DoRun (
void);
60 Ns3WimaxNetworkEntryTestCase::Ns3WimaxNetworkEntryTestCase ()
61 :
TestCase (
"Test the network entry procedure")
65 Ns3WimaxNetworkEntryTestCase::~Ns3WimaxNetworkEntryTestCase ()
83 ssDevs = wimax.
Install (ssNodes,
84 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
85 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
87 bsDevs = wimax.
Install (bsNodes,
88 WimaxHelper::DEVICE_TYPE_BASE_STATION,
89 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
93 for (
int i = 0; i < 10; i++)
96 "SS[" << i <<
"] IsNotRegistered");
98 Simulator::Destroy ();
115 virtual void DoRun (
void);
119 Ns3WimaxManagementConnectionsTestCase::Ns3WimaxManagementConnectionsTestCase ()
120 :
TestCase (
"Test if the management connections are correctly setup")
124 Ns3WimaxManagementConnectionsTestCase::~Ns3WimaxManagementConnectionsTestCase ()
142 ssDevs = wimax.
Install (ssNodes,
143 WimaxHelper::DEVICE_TYPE_SUBSCRIBER_STATION,
144 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
146 bsDevs = wimax.
Install (bsNodes,
147 WimaxHelper::DEVICE_TYPE_BASE_STATION,
148 WimaxHelper::SIMPLE_PHY_TYPE_OFDM,
152 for (
int i = 0; i < 10; i++)
155 true,
"Management connections for SS[" << i <<
"] are not allocated");
157 Simulator::Destroy ();
165 Ns3WimaxSSMacTestSuite::Ns3WimaxSSMacTestSuite ()
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr<NetDevice> stored in this container at a given index.
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
virtual void DoRun(void)
Implementation to actually run this test case.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
virtual void DoRun(void)
Implementation to actually run this test case.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual test case to this test suite.
Time Seconds(double seconds)
create ns3::Time instances in units of seconds.
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.