A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-carrier-aggregation.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2016 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 <biljana.bojovic@cttc.es>
19
*
20
*/
21
22
#ifndef TEST_CARRIER_AGGREGATION_H
23
#define TEST_CARRIER_AGGREGATION_H
24
25
#include "ns3/simulator.h"
26
#include "ns3/test.h"
27
#include "fcntl.h"
28
29
30
using namespace
ns3
;
31
45
class
CarrierAggregationTestCase
:
public
TestCase
46
{
47
public
:
48
49
static
bool
s_writeResults
;
50
60
CarrierAggregationTestCase
(uint16_t nUser, uint16_t dist, uint32_t dlbandwidth, uint32_t ulBandwidth, uint32_t numberOfComponentCarriers);
61
virtual
~
CarrierAggregationTestCase
();
66
void
DlScheduling (
DlSchedulingCallbackInfo
dlInfo);
76
void
UlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb, uint8_t componentCarrierId);
78
void
WriteResultToFile ();
79
80
81
private
:
82
83
virtual
void
DoRun (
void
);
93
static
std::string BuildNameString (uint16_t nUser, uint16_t dist, uint32_t dlBandwidth, uint32_t ulBandwidth, uint32_t numberOfComponentCarriers);
94
95
uint16_t
m_nUser
;
96
uint16_t
m_dist
;
97
uint32_t
m_dlBandwidth
;
98
uint32_t
m_ulBandwidth
;
99
uint32_t
m_numberOfComponentCarriers
;
100
101
std::map <uint8_t, uint32_t>
m_ccDownlinkTraffic
;
102
std::map <uint8_t, uint32_t>
m_ccUplinkTraffic
;
103
uint64_t
m_dlThroughput
;
104
uint64_t
m_ulThroughput
;
105
double
m_statsDuration
;
106
};
107
108
109
116
class
TestCarrierAggregationSuite
:
public
TestSuite
117
{
118
public
:
119
TestCarrierAggregationSuite
();
120
};
121
122
#endif
/* TEST_CARRIER_AGGREGATION_H */
CarrierAggregationTestCase::m_dlBandwidth
uint32_t m_dlBandwidth
DL bandwidth.
Definition:
lte-test-carrier-aggregation.h:97
CarrierAggregationTestCase::m_ccDownlinkTraffic
std::map< uint8_t, uint32_t > m_ccDownlinkTraffic
CC DL traffic.
Definition:
lte-test-carrier-aggregation.h:101
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
CarrierAggregationTestCase::m_ulThroughput
uint64_t m_ulThroughput
UL throughput.
Definition:
lte-test-carrier-aggregation.h:104
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
CarrierAggregationTestCase::m_ulBandwidth
uint32_t m_ulBandwidth
UL bandwidth.
Definition:
lte-test-carrier-aggregation.h:98
CarrierAggregationTestCase::m_numberOfComponentCarriers
uint32_t m_numberOfComponentCarriers
number of component carriers
Definition:
lte-test-carrier-aggregation.h:99
CarrierAggregationTestCase::m_dist
uint16_t m_dist
the distance
Definition:
lte-test-carrier-aggregation.h:96
CarrierAggregationTestCase::m_dlThroughput
uint64_t m_dlThroughput
DL throughput.
Definition:
lte-test-carrier-aggregation.h:103
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
CarrierAggregationTestCase::m_statsDuration
double m_statsDuration
stats duration
Definition:
lte-test-carrier-aggregation.h:105
CarrierAggregationTestCase
This system test program creates different test cases with a single eNB and several UEs...
Definition:
lte-test-carrier-aggregation.h:45
CarrierAggregationTestCase::m_nUser
uint16_t m_nUser
the number of users
Definition:
lte-test-carrier-aggregation.h:95
CarrierAggregationTestCase::s_writeResults
static bool s_writeResults
write results flag, determines whether to write results to outoput files
Definition:
lte-test-carrier-aggregation.h:49
ns3::DlSchedulingCallbackInfo
DlSchedulingCallbackInfo structure.
Definition:
lte-common.h:239
TestCarrierAggregationSuite
Test Carrier Aggregation Suite.
Definition:
lte-test-carrier-aggregation.h:116
CarrierAggregationTestCase::m_ccUplinkTraffic
std::map< uint8_t, uint32_t > m_ccUplinkTraffic
CC UL traffic.
Definition:
lte-test-carrier-aggregation.h:102
Generated on Wed Nov 7 2018 10:02:03 for ns-3 by
1.8.14