A Discrete-Event Network Simulator
API
lte-test-fading.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: Marco Miozzo <marco.miozzo@cttc.es>
19 */
20 
21 #ifndef LTE_TEST_FADING_H
22 #define LTE_TEST_FADING_H
23 
24 #include "ns3/spectrum-value.h"
25 
26 #include "ns3/test.h"
27 
28 #include <ns3/buildings-mobility-model.h>
29 #include <ns3/buildings-propagation-loss-model.h>
30 #include <ns3/spectrum-value.h>
31 
32 #include <ns3/trace-fading-loss-model.h>
33 
34 using namespace ns3;
35 
36 
45 {
46  public:
48 };
49 
50 
60 {
61  public:
70  virtual ~LteFadingTestCase ();
71 
72  private:
73  virtual void DoRun (void);
74 
75  void GetFadingSample ();
76 
80  double m_lossRef;
81  std::vector<SpectrumValue> m_fadingSamples;
82 
83 
84 };
85 
93 {
94  public:
102  LteFadingSystemTestCase (std::string name, double snrDb, double dist, uint16_t mcsIndex);
104  virtual ~LteFadingSystemTestCase ();
105 
110  void DlScheduling (DlSchedulingCallbackInfo dlInfo);
111 
112  private:
113  virtual void DoRun (void);
114 
115  double m_snrDb;
116  double m_distance;
117  uint16_t m_mcsIndex;
118 };
119 
120 #endif /*LTE_TEST_FADING_H*/
Ptr< BuildingsMobilityModel > m_node2
building mobility model #2
std::vector< SpectrumValue > m_fadingSamples
fading samples
A suite of tests to run.
Definition: test.h:1342
const double m1
First component modulus, 232 - 209.
Definition: rng-stream.cc:57
encapsulates test code
Definition: test.h:1155
double m_distance
distance
Ptr< TraceFadingLossModel > m_fadingModule
fading loss model
Lte Fading System Test Case.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< BuildingsMobilityModel > m_node1
building mobility model #1
Fading test case is checking if the pathloss between macro and UE is equal to the theoretical value w...
Test 1.1 fading model.
uint16_t m_mcsIndex
MCS index.
const double m2
Second component modulus, 232 - 22853.
Definition: rng-stream.cc:60
DlSchedulingCallbackInfo structure.
Definition: lte-common.h:239
double m_lossRef
loss reference
double m_snrDb
SNR in DB.