A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-test-fdbet-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_FDBET_FF_MAC_SCHEDULER_H
23
#define LENA_TEST_FDBET_FF_MAC_SCHEDULER_H
24
25
#include "ns3/simulator.h"
26
#include "ns3/test.h"
27
28
using namespace
ns3
;
29
41
class
LenaFdBetFfMacSchedulerTestCase1
:
public
TestCase
42
{
43
public
:
53
LenaFdBetFfMacSchedulerTestCase1
(uint16_t nUser,
54
double
dist,
55
double
thrRefDl,
56
double
thrRefUl,
57
bool
errorModelEnabled);
58
~
LenaFdBetFfMacSchedulerTestCase1
()
override
;
59
60
private
:
68
static
std::string BuildNameString(uint16_t nUser,
double
dist);
69
void
DoRun()
override
;
70
uint16_t
m_nUser
;
71
double
m_dist
;
72
double
m_thrRefDl
;
73
double
m_thrRefUl
;
74
bool
m_errorModelEnabled
;
75
};
76
84
class
LenaFdBetFfMacSchedulerTestCase2
:
public
TestCase
85
{
86
public
:
95
LenaFdBetFfMacSchedulerTestCase2
(std::vector<double> dist,
96
std::vector<uint32_t> achievableRateDl,
97
std::vector<uint32_t> estThrFdBetUl,
98
bool
errorModelEnabled);
99
~
LenaFdBetFfMacSchedulerTestCase2
()
override
;
100
101
private
:
109
static
std::string BuildNameString(uint16_t nUser, std::vector<double> dist);
110
void
DoRun()
override
;
111
uint16_t
m_nUser
;
112
std::vector<double>
m_dist
;
113
std::vector<uint32_t>
m_achievableRateDl
;
114
std::vector<uint32_t>
m_estThrFdBetUl
;
115
bool
m_errorModelEnabled
;
116
};
117
124
class
LenaTestFdBetFfMacSchedulerSuite
:
public
TestSuite
125
{
126
public
:
127
LenaTestFdBetFfMacSchedulerSuite
();
128
};
129
130
#endif
/* LENA_TEST_FDBET_FF_MAC_SCHEDULER_H */
LenaFdBetFfMacSchedulerTestCase1
This system test program creates different test cases with a single eNB and several UEs,...
Definition:
lte-test-fdbet-ff-mac-scheduler.h:42
LenaFdBetFfMacSchedulerTestCase1::m_thrRefUl
double m_thrRefUl
UL throughput reference.
Definition:
lte-test-fdbet-ff-mac-scheduler.h:73
LenaFdBetFfMacSchedulerTestCase1::m_errorModelEnabled
bool m_errorModelEnabled
error model enabled?
Definition:
lte-test-fdbet-ff-mac-scheduler.h:74
LenaFdBetFfMacSchedulerTestCase1::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-fdbet-ff-mac-scheduler.h:70
LenaFdBetFfMacSchedulerTestCase1::m_dist
double m_dist
distance between the nodes
Definition:
lte-test-fdbet-ff-mac-scheduler.h:71
LenaFdBetFfMacSchedulerTestCase1::m_thrRefDl
double m_thrRefDl
DL throughput reference.
Definition:
lte-test-fdbet-ff-mac-scheduler.h:72
LenaFdBetFfMacSchedulerTestCase2
Test case is similar to the one defined in LenaFdBetFfMacSchedulerTestCase1, with the difference that...
Definition:
lte-test-fdbet-ff-mac-scheduler.h:85
LenaFdBetFfMacSchedulerTestCase2::m_errorModelEnabled
bool m_errorModelEnabled
specifies whether the error model is enabled
Definition:
lte-test-fdbet-ff-mac-scheduler.h:115
LenaFdBetFfMacSchedulerTestCase2::m_dist
std::vector< double > m_dist
distance between the nodes
Definition:
lte-test-fdbet-ff-mac-scheduler.h:112
LenaFdBetFfMacSchedulerTestCase2::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-fdbet-ff-mac-scheduler.h:111
LenaFdBetFfMacSchedulerTestCase2::m_achievableRateDl
std::vector< uint32_t > m_achievableRateDl
DL achievable rate.
Definition:
lte-test-fdbet-ff-mac-scheduler.h:113
LenaFdBetFfMacSchedulerTestCase2::m_estThrFdBetUl
std::vector< uint32_t > m_estThrFdBetUl
estimated throughput FDBET UL
Definition:
lte-test-fdbet-ff-mac-scheduler.h:114
LenaTestFdBetFfMacSchedulerSuite
Test suite for FDBetFfMacScheduler test case.
Definition:
lte-test-fdbet-ff-mac-scheduler.h:125
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.
src
lte
test
lte-test-fdbet-ff-mac-scheduler.h
Generated on Sun Mar 3 2024 17:11:04 for ns-3 by
1.9.1