A Discrete-Event Network Simulator
API
lte-test-mimo.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  */
19 
20 #ifndef LENA_TEST_MIMO_H
21 #define LENA_TEST_MIMO_H
22 
23 #include "ns3/simulator.h"
24 #include "ns3/test.h"
25 
26 namespace ns3
27 {
29 }
30 
31 using namespace ns3;
32 
41 class LenaMimoTestCase : public TestCase
42 {
43  public:
52  LenaMimoTestCase(uint16_t dist,
53  std::vector<uint32_t> estThrDl,
54  std::string schedulerType,
55  bool useIdealRrc);
56  ~LenaMimoTestCase() override;
57 
58  private:
59  void DoRun() override;
60 
67  void GetRlcBufferSample(Ptr<RadioBearerStatsCalculator> rlcStats, uint64_t imsi, uint8_t rnti);
68 
76  static std::string BuildNameString(uint16_t dist, std::string schedulerType, bool useIdealRrc);
77  uint16_t m_dist;
78  std::vector<uint32_t> m_estThrDl;
79  std::string m_schedulerType;
81 
82  std::vector<uint64_t> m_dlDataRxed;
83 };
84 
92 {
93  public:
95 };
96 
97 #endif /* LENA_TEST_MIMO_H */
This system test program creates different test cases with a single eNB and single UE.
Definition: lte-test-mimo.h:42
std::string m_schedulerType
the scheduler type
Definition: lte-test-mimo.h:79
bool m_useIdealRrc
whether to use the ideal RRC
Definition: lte-test-mimo.h:80
std::vector< uint64_t > m_dlDataRxed
DL data received.
Definition: lte-test-mimo.h:82
std::vector< uint32_t > m_estThrDl
estimated throughput DL
Definition: lte-test-mimo.h:78
uint16_t m_dist
the distance
Definition: lte-test-mimo.h:77
Lena Test Mimo Suite.
Definition: lte-test-mimo.h:92
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
This class is an ns-3 trace sink that performs the calculation of PDU statistics for uplink and downl...
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.