A Discrete-Event Network Simulator
API
lte-test-carrier-aggregation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 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: Biljana Bojovic <biljana.bojovic@cttc.es>
18 *
19 */
20
21#ifndef TEST_CARRIER_AGGREGATION_H
22#define TEST_CARRIER_AGGREGATION_H
23
24#include "fcntl.h"
25
26#include "ns3/lte-common.h"
27#include "ns3/simulator.h"
28#include "ns3/test.h"
29
30using namespace ns3;
31
46{
47 public:
48 static bool s_writeResults;
50
61 CarrierAggregationTestCase(uint16_t nUser,
62 uint16_t dist,
63 uint32_t dlbandwidth,
64 uint32_t ulBandwidth,
65 uint32_t numberOfComponentCarriers);
81 void UlScheduling(uint32_t frameNo,
82 uint32_t subframeNo,
83 uint16_t rnti,
84 uint8_t mcs,
85 uint16_t sizeTb,
86 uint8_t componentCarrierId);
88 void WriteResultToFile();
89
90 private:
91 void DoRun() override;
101 static std::string BuildNameString(uint16_t nUser,
102 uint16_t dist,
103 uint32_t dlBandwidth,
104 uint32_t ulBandwidth,
105 uint32_t numberOfComponentCarriers);
106
107 uint16_t m_nUser;
108 uint16_t m_dist;
109 uint16_t m_dlBandwidth;
110 uint16_t m_ulBandwidth;
112
113 std::map<uint8_t, uint32_t> m_ccDownlinkTraffic;
114 std::map<uint8_t, uint32_t> m_ccUplinkTraffic;
115 uint64_t m_dlThroughput;
116 uint64_t m_ulThroughput;
118};
119
127{
128 public:
130};
131
132#endif /* TEST_CARRIER_AGGREGATION_H */
This system test program creates different test cases with a single eNB and several UEs,...
void DoRun() override
Implementation to actually run this TestCase.
uint32_t m_numberOfComponentCarriers
number of component carriers
void DlScheduling(DlSchedulingCallbackInfo dlInfo)
DL Scheduling function that is used in this test as callback function of DL scheduling trace.
static bool s_writeResults
write results flag, determines whether to write results to outoput files
void WriteResultToFile()
Write result to file function.
CarrierAggregationTestCase(uint16_t nUser, uint16_t dist, uint32_t dlbandwidth, uint32_t ulBandwidth, uint32_t numberOfComponentCarriers)
Constructor of test case.
uint16_t m_nUser
the number of users
std::map< uint8_t, uint32_t > m_ccDownlinkTraffic
CC DL traffic.
void UlScheduling(uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb, uint8_t componentCarrierId)
UL Scheduling function that is used in this test as callback function of UL sceduling trace.
static std::string BuildNameString(uint16_t nUser, uint16_t dist, uint32_t dlBandwidth, uint32_t ulBandwidth, uint32_t numberOfComponentCarriers)
Builds the test name string based on provided parameter values.
std::map< uint8_t, uint32_t > m_ccUplinkTraffic
CC UL traffic.
Test Carrier Aggregation Suite.
encapsulates test code
Definition: test.h:1060
A suite of tests to run.
Definition: test.h:1256
Every class exported by the ns3 library is enclosed in the ns3 namespace.
DlSchedulingCallbackInfo structure.
Definition: lte-common.h:231