10#include "ns3/net-device-container.h"
11#include "ns3/node-container.h"
12#include "ns3/simulator.h"
13#include "ns3/snr-to-block-error-rate-manager.h"
15#include "ns3/wimax-helper.h"
41 void DoRun()
override;
51 :
TestCase(
"Test the Phy model with different frame durations")
86 for (
int i = 0; i < 3; i++)
101 double frameDuratioTab[7] = {0.0025, 0.004, 0.005, 0.008, 0.01, 0.0125, 0.02};
102 for (
int i = 0; i < 7; i++)
104 NS_LOG_DEBUG(
"Frame Duration = " << frameDuratioTab[i]);
125 void DoRun()
override;
135 :
TestCase(
"Test the SNR to block error rate module")
150 for (
double i = -5; i < 40; i += 0.1)
161 for (
int i = 0; i < 7; i++)
Test the SNr tom block error rate module.
void DoRun() override
Implementation to actually run this TestCase.
~Ns3WimaxSNRtoBLERTestCase() override
bool DoRunOnce(uint8_t modulationType)
Run once function.
Ns3WimaxSNRtoBLERTestCase()
Ns3 Wimax Simple OFDM Test Case.
Ns3WimaxSimpleOFDMTestCase()
void DoRun() override
Implementation to actually run this TestCase.
~Ns3WimaxSimpleOFDMTestCase() override
bool DoRunOnce(double FrameDuration)
Run once function.
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.
This class handles the SNR to BlcER traces.
void LoadTraces()
Loads the traces form the repository specified in the constructor or set by SetTraceFilePath function...
SNRToBlockErrorRateRecord * GetSNRToBlockErrorRateRecord(double SNR, uint8_t modulation)
returns a record of type SNRToBlockErrorRateRecord corresponding to a given modulation and SNR value
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
static void Destroy()
Execute the events scheduled with ScheduleDestroy().
static void Run()
Run the simulation.
static void Stop()
Tell the Simulator the calling event should be the last one executed.
SubscriberStationNetDevice subclass of WimaxNetDevice.
bool IsRegistered() const
void AddTestCase(TestCase *testCase, Duration duration=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.
@ SCHED_TYPE_SIMPLE
A simple priority-based FCFS scheduler.
@ DEVICE_TYPE_SUBSCRIBER_STATION
Subscriber station(SS) device.
@ DEVICE_TYPE_BASE_STATION
Base station(BS) device.
NetDeviceContainer Install(NodeContainer c, NetDeviceType type, PhyType phyType, SchedulerType schedulerType)
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
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 Ns3WimaxPhyTestSuite ns3WimaxPhyTestSuite
the test suite