A Discrete-Event Network Simulator
API
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 
43 {
44 public:
56  LenaCqaFfMacSchedulerTestCase1 (uint16_t nUser, double dist, double thrRefDl, double thrRefUl, uint16_t packetSize, uint16_t interval, bool errorModelEnabled);
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;
76 };
77 
78 
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;
119 };
120 
121 
130 {
131 public:
133 };
134 
135 #endif /* LENA_TEST_CQA_FF_MAC_SCHEDULER_H */
double m_dist
distance between the nodes
double m_thrRefUl
estimated uplink throughput
uint16_t m_packetSize
packet size in bytes
double m_thrRefDl
estimated downlink throughput
bool m_errorModelEnabled
whether error model is enabled
bool m_errorModelEnabled
whether the error model is enabled
uint16_t m_interval
UDP interval time in ms.
std::vector< double > m_dist
distance between the nodes
std::vector< uint16_t > m_packetSize
packet size in bytes
std::vector< uint32_t > m_estThrCqaDl
estimated throughput CQA DL
The test suite for testing CQA scheduler functionality.
encapsulates test code
Definition: test.h:994
A suite of tests to run.
Definition: test.h:1188
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static const uint32_t packetSize