A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-cqa-ff-mac-scheduler.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Biljana Bojovic<bbojovic@cttc.es>
19
* Dizhi Zhou <dizhi.zhou@gmail.com>
20
* Marco Miozzo <marco.miozzo@cttc.es>,
21
* Nicola Baldo <nbaldo@cttc.es>
22
*
23
*/
24
25
#ifndef LENA_TEST_CQA_FF_MAC_SCHEDULER_H
26
#define LENA_TEST_CQA_FF_MAC_SCHEDULER_H
27
28
#include "ns3/simulator.h"
29
#include "ns3/test.h"
30
31
32
using namespace
ns3
;
33
42
class
LenaCqaFfMacSchedulerTestCase1
:
public
TestCase
43
{
44
public
:
56
LenaCqaFfMacSchedulerTestCase1
(uint16_t nUser,
double
dist,
double
thrRefDl,
double
thrRefUl, uint16_t
packetSize
, uint16_t interval,
bool
errorModelEnabled);
57
virtual
~
LenaCqaFfMacSchedulerTestCase1
();
58
59
private
:
67
static
std::string BuildNameString (uint16_t nUser,
double
dist);
68
virtual
void
DoRun (
void
);
69
uint16_t
m_nUser
;
70
double
m_dist
;
71
uint16_t
m_packetSize
;
72
uint16_t
m_interval
;
73
double
m_thrRefDl
;
74
double
m_thrRefUl
;
75
bool
m_errorModelEnabled
;
76
};
77
78
88
class
LenaCqaFfMacSchedulerTestCase2
:
public
TestCase
89
{
90
public
:
100
LenaCqaFfMacSchedulerTestCase2
(std::vector<double> dist, std::vector<uint32_t> estThrCqaDl, std::vector<uint16_t>
packetSize
, uint16_t interval,
bool
errorModelEnabled);
101
virtual
~
LenaCqaFfMacSchedulerTestCase2
();
102
103
private
:
111
static
std::string BuildNameString (uint16_t nUser, std::vector<double> dist);
112
virtual
void
DoRun (
void
);
113
uint16_t
m_nUser
;
114
std::vector<double>
m_dist
;
115
std::vector<uint16_t>
m_packetSize
;
116
uint16_t
m_interval
;
117
std::vector<uint32_t>
m_estThrCqaDl
;
118
bool
m_errorModelEnabled
;
119
};
120
121
129
class
LenaTestCqaFfMacSchedulerSuite
:
public
TestSuite
130
{
131
public
:
132
LenaTestCqaFfMacSchedulerSuite
();
133
};
134
135
#endif
/* LENA_TEST_CQA_FF_MAC_SCHEDULER_H */
LenaCqaFfMacSchedulerTestCase1::m_packetSize
uint16_t m_packetSize
packet size in bytes
Definition:
lte-test-cqa-ff-mac-scheduler.h:71
LenaCqaFfMacSchedulerTestCase1::m_thrRefDl
double m_thrRefDl
estimated downlink throughput
Definition:
lte-test-cqa-ff-mac-scheduler.h:73
LenaCqaFfMacSchedulerTestCase2::m_estThrCqaDl
std::vector< uint32_t > m_estThrCqaDl
estimated throughput CQA DL
Definition:
lte-test-cqa-ff-mac-scheduler.h:117
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
LenaCqaFfMacSchedulerTestCase2::m_interval
uint16_t m_interval
UDP interval time in ms.
Definition:
lte-test-cqa-ff-mac-scheduler.h:116
LenaCqaFfMacSchedulerTestCase1::m_errorModelEnabled
bool m_errorModelEnabled
whether error model is enabled
Definition:
lte-test-cqa-ff-mac-scheduler.h:75
LenaCqaFfMacSchedulerTestCase1::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-cqa-ff-mac-scheduler.h:69
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
LenaCqaFfMacSchedulerTestCase2::m_nUser
uint16_t m_nUser
number of UE nodes
Definition:
lte-test-cqa-ff-mac-scheduler.h:113
LenaTestCqaFfMacSchedulerSuite
The test suite for testing CQA scheduler functionality.
Definition:
lte-test-cqa-ff-mac-scheduler.h:129
LenaCqaFfMacSchedulerTestCase2::m_errorModelEnabled
bool m_errorModelEnabled
whether the error model is enabled
Definition:
lte-test-cqa-ff-mac-scheduler.h:118
LenaCqaFfMacSchedulerTestCase1::m_interval
uint16_t m_interval
interval time in ms
Definition:
lte-test-cqa-ff-mac-scheduler.h:72
LenaCqaFfMacSchedulerTestCase1::m_thrRefUl
double m_thrRefUl
estimated uplink throughput
Definition:
lte-test-cqa-ff-mac-scheduler.h:74
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LenaCqaFfMacSchedulerTestCase1
This is a system test program.
Definition:
lte-test-cqa-ff-mac-scheduler.h:42
LenaCqaFfMacSchedulerTestCase2::m_dist
std::vector< double > m_dist
distance between the nodes
Definition:
lte-test-cqa-ff-mac-scheduler.h:114
LenaCqaFfMacSchedulerTestCase2
This is a system test program.
Definition:
lte-test-cqa-ff-mac-scheduler.h:88
packetSize
static const uint32_t packetSize
Definition:
power-adaptation-distance.cc:113
LenaCqaFfMacSchedulerTestCase1::m_dist
double m_dist
distance between the nodes
Definition:
lte-test-cqa-ff-mac-scheduler.h:70
LenaCqaFfMacSchedulerTestCase2::m_packetSize
std::vector< uint16_t > m_packetSize
packet size in bytes
Definition:
lte-test-cqa-ff-mac-scheduler.h:115
Generated on Wed Nov 7 2018 10:02:03 for ns-3 by
1.8.14