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 ();
 
Test if the management connections are correctly setup.
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
Ns3WimaxManagementConnectionsTestCase()
 
virtual ~Ns3WimaxManagementConnectionsTestCase()
 
Test the network entry procedure.
 
virtual void DoRun(void)
Implementation to actually run this TestCase.
 
Ns3WimaxNetworkEntryTestCase()
 
virtual ~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.
 
Ptr< T > GetObject(void) const
Get a pointer to the requested aggregated Object.
 
SubscriberStationNetDevice subclass of WimaxNetDevice.
 
bool GetAreManagementConnectionsAllocated(void) const
 
bool IsRegistered(void) 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