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);
61 :
TestCase (
"Test the network entry procedure")
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,
91 Simulator::Stop (Seconds (1));
93 for (
int i = 0; i < 10; i++)
96 "SS[" << i <<
"] IsNotRegistered");
98 Simulator::Destroy ();
115 virtual void DoRun (
void);
120 :
TestCase (
"Test if the management connections are correctly setup")
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,
150 Simulator::Stop (Seconds (1));
152 for (
int i = 0; i < 10; i++)
155 true,
"Management connections for SS[" << i <<
"] are not allocated");
157 Simulator::Destroy ();
Ns3WimaxNetworkEntryTestCase()
Ptr< NetDevice > Get(uint32_t i) const
Get the Ptr stored in this container at a given index.
SchedulerType
Scheduler Type Different implementations of uplink/downlink scheduler.
virtual ~Ns3WimaxNetworkEntryTestCase()
virtual ~Ns3WimaxManagementConnectionsTestCase()
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
static Ns3WimaxSSMacTestSuite ns3WimaxSSMacTestSuite
virtual void DoRun(void)
Implementation to actually run this TestCase.
#define NS_TEST_EXPECT_MSG_EQ(actual, limit, msg)
Test that an actual and expected (limit) value are equal and report if not.
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.
void AddTestCase(TestCase *testCase) NS_DEPRECATED
Add an individual child TestCase case to this TestCase.
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.