A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-test-pss-ff-mac-scheduler.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Marco Miozzo <marco.miozzo@cttc.es>,
18
* Nicola Baldo <nbaldo@cttc.es>
19
* Dizhi Zhou <dizhi.zhou@gmail.com>
20
*/
21
22
#ifndef LENA_TEST_PSS_FF_MAC_SCHEDULER_H
23
#define LENA_TEST_PSS_FF_MAC_SCHEDULER_H
24
25
#include "ns3/simulator.h"
26
#include "ns3/test.h"
27
28
using namespace
ns3
;
29
42
class
LenaPssFfMacSchedulerTestCase1
:
public
TestCase
43
{
44
public
:
56
LenaPssFfMacSchedulerTestCase1
(uint16_t nUser,
57
double
dist,
58
double
thrRefDl,
59
double
thrRefUl,
60
uint16_t
packetSize
,
61
uint16_t interval,
62
bool
errorModelEnabled);
63
~LenaPssFfMacSchedulerTestCase1
()
override
;
64
65
private
:
72
static
std::string
BuildNameString
(uint16_t nUser,
double
dist);
73
void
DoRun
()
override
;
74
uint16_t
m_nUser
;
75
double
m_dist
;
76
uint16_t
m_packetSize
;
77
uint16_t
m_interval
;
78
double
m_thrRefDl
;
79
double
m_thrRefUl
;
80
bool
m_errorModelEnabled
;
81
};
82
91
class
LenaPssFfMacSchedulerTestCase2
:
public
TestCase
92
{
93
public
:
103
LenaPssFfMacSchedulerTestCase2
(std::vector<double> dist,
104
std::vector<uint32_t> estThrPssDl,
105
std::vector<uint16_t>
packetSize
,
106
uint16_t interval,
107
bool
errorModelEnabled);
108
~LenaPssFfMacSchedulerTestCase2
()
override
;
109
110
private
:
117
static
std::string
BuildNameString
(uint16_t nUser, std::vector<double> dist);
118
void
DoRun
()
override
;
119
uint16_t
m_nUser
;
120
std::vector<double>
m_dist
;
121
std::vector<uint16_t>
m_packetSize
;
122
uint16_t
m_interval
;
123
std::vector<uint32_t>
m_estThrPssDl
;
124
bool
m_errorModelEnabled
;
125
};
126
133
class
LenaTestPssFfMacSchedulerSuite
:
public
TestSuite
134
{
135
public
:
136
LenaTestPssFfMacSchedulerSuite
();
137
};
138
139
#endif
/* LENA_TEST_PSS_FF_MAC_SCHEDULER_H */
LenaPssFfMacSchedulerTestCase1
This system test program creates different test cases with a single eNB and several UEs,...
Definition:
lte-test-pss-ff-mac-scheduler.h:43
LenaPssFfMacSchedulerTestCase1::m_interval
uint16_t m_interval
the interval time in ms
Definition:
lte-test-pss-ff-mac-scheduler.h:77
LenaPssFfMacSchedulerTestCase1::m_packetSize
uint16_t m_packetSize
the packet size in bytes
Definition:
lte-test-pss-ff-mac-scheduler.h:76
LenaPssFfMacSchedulerTestCase1::m_errorModelEnabled
bool m_errorModelEnabled
indicates whether the error model is enabled
Definition:
lte-test-pss-ff-mac-scheduler.h:80
LenaPssFfMacSchedulerTestCase1::m_thrRefDl
double m_thrRefDl
the DL throughput reference value
Definition:
lte-test-pss-ff-mac-scheduler.h:78
LenaPssFfMacSchedulerTestCase1::BuildNameString
static std::string BuildNameString(uint16_t nUser, double dist)
Builds the test name string based on provided parameter values.
Definition:
lte-test-pss-ff-mac-scheduler.cc:266
LenaPssFfMacSchedulerTestCase1::m_thrRefUl
double m_thrRefUl
the UL throughput reference value
Definition:
lte-test-pss-ff-mac-scheduler.h:79
LenaPssFfMacSchedulerTestCase1::m_dist
double m_dist
the distance between nodes
Definition:
lte-test-pss-ff-mac-scheduler.h:75
LenaPssFfMacSchedulerTestCase1::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-pss-ff-mac-scheduler.h:74
LenaPssFfMacSchedulerTestCase1::LenaPssFfMacSchedulerTestCase1
LenaPssFfMacSchedulerTestCase1(uint16_t nUser, double dist, double thrRefDl, double thrRefUl, uint16_t packetSize, uint16_t interval, bool errorModelEnabled)
Constructor.
Definition:
lte-test-pss-ff-mac-scheduler.cc:273
LenaPssFfMacSchedulerTestCase1::~LenaPssFfMacSchedulerTestCase1
~LenaPssFfMacSchedulerTestCase1() override
Definition:
lte-test-pss-ff-mac-scheduler.cc:291
LenaPssFfMacSchedulerTestCase1::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-pss-ff-mac-scheduler.cc:296
LenaPssFfMacSchedulerTestCase2
Simillar to the LenaPssFfMacSchedulerTestCase1 with the difference that UEs are places in such a way ...
Definition:
lte-test-pss-ff-mac-scheduler.h:92
LenaPssFfMacSchedulerTestCase2::m_errorModelEnabled
bool m_errorModelEnabled
indicates whether the error model is enabled
Definition:
lte-test-pss-ff-mac-scheduler.h:124
LenaPssFfMacSchedulerTestCase2::m_dist
std::vector< double > m_dist
the distance between nodes
Definition:
lte-test-pss-ff-mac-scheduler.h:120
LenaPssFfMacSchedulerTestCase2::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-pss-ff-mac-scheduler.h:119
LenaPssFfMacSchedulerTestCase2::~LenaPssFfMacSchedulerTestCase2
~LenaPssFfMacSchedulerTestCase2() override
Definition:
lte-test-pss-ff-mac-scheduler.cc:565
LenaPssFfMacSchedulerTestCase2::m_interval
uint16_t m_interval
the interval time in ms
Definition:
lte-test-pss-ff-mac-scheduler.h:122
LenaPssFfMacSchedulerTestCase2::m_packetSize
std::vector< uint16_t > m_packetSize
the packet size in bytes
Definition:
lte-test-pss-ff-mac-scheduler.h:121
LenaPssFfMacSchedulerTestCase2::BuildNameString
static std::string BuildNameString(uint16_t nUser, std::vector< double > dist)
Builds the test name string based on provided parameter values.
Definition:
lte-test-pss-ff-mac-scheduler.cc:538
LenaPssFfMacSchedulerTestCase2::LenaPssFfMacSchedulerTestCase2
LenaPssFfMacSchedulerTestCase2(std::vector< double > dist, std::vector< uint32_t > estThrPssDl, std::vector< uint16_t > packetSize, uint16_t interval, bool errorModelEnabled)
Constructor.
Definition:
lte-test-pss-ff-mac-scheduler.cc:550
LenaPssFfMacSchedulerTestCase2::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition:
lte-test-pss-ff-mac-scheduler.cc:570
LenaPssFfMacSchedulerTestCase2::m_estThrPssDl
std::vector< uint32_t > m_estThrPssDl
the DL estimated throughput PSS
Definition:
lte-test-pss-ff-mac-scheduler.h:123
LenaTestPssFfMacSchedulerSuite
Lena Pss Ff Mac Scheduler Test Suite.
Definition:
lte-test-pss-ff-mac-scheduler.h:134
LenaTestPssFfMacSchedulerSuite::LenaTestPssFfMacSchedulerSuite
LenaTestPssFfMacSchedulerSuite()
Definition:
lte-test-pss-ff-mac-scheduler.cc:64
ns3::TestCase
encapsulates test code
Definition:
test.h:1060
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1256
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
packetSize
static const uint32_t packetSize
Packet size generated at the AP.
Definition:
wifi-power-adaptation-distance.cc:111
src
lte
test
lte-test-pss-ff-mac-scheduler.h
Generated on Tue Nov 1 2022 23:00:15 for ns-3 by
1.9.3