A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
test
lte-test-interference.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: Manuel Requena <manuel.requena@cttc.es>
19
* Nicola Baldo <nbaldo@cttc.es>
20
*/
21
22
#ifndef LTE_TEST_INTERFERENCE_H
23
#define LTE_TEST_INTERFERENCE_H
24
25
#include "ns3/test.h"
26
27
28
using namespace
ns3
;
29
30
37
class
LteInterferenceTestSuite
:
public
TestSuite
38
{
39
public
:
40
LteInterferenceTestSuite
();
41
};
42
43
51
class
LteInterferenceTestCase
:
public
TestCase
52
{
53
public
:
67
LteInterferenceTestCase
(std::string name,
double
d1,
double
d2,
double
dlSinr,
double
ulSinr,
double
dlSe,
double
ulSe, uint16_t dlMcs, uint16_t ulMcs);
68
virtual
~
LteInterferenceTestCase
();
69
74
void
DlScheduling (
DlSchedulingCallbackInfo
dlInfo);
75
84
void
UlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti,
85
uint8_t mcs, uint16_t sizeTb);
86
87
private
:
88
virtual
void
DoRun (
void
);
89
90
91
double
m_d1
;
92
double
m_d2
;
93
double
m_expectedDlSinrDb
;
94
double
m_expectedUlSinrDb
;
95
uint16_t
m_dlMcs
;
96
uint16_t
m_ulMcs
;
97
};
98
99
#endif
/* LTE_TEST_INTERFERENCE_H */
ns3::TestSuite
A suite of tests to run.
Definition:
test.h:1342
ns3::TestCase
encapsulates test code
Definition:
test.h:1155
LteInterferenceTestCase::m_d1
double m_d1
distance between UE and ENB
Definition:
lte-test-interference.h:91
LteInterferenceTestCase::m_expectedUlSinrDb
double m_expectedUlSinrDb
expected UL SINR in dB
Definition:
lte-test-interference.h:94
LteInterferenceTestCase::m_dlMcs
uint16_t m_dlMcs
the DL MCS
Definition:
lte-test-interference.h:95
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
LteInterferenceTestCase::m_expectedDlSinrDb
double m_expectedDlSinrDb
expected DL SINR in dB
Definition:
lte-test-interference.h:93
LteInterferenceTestCase::m_d2
double m_d2
distance between UE and other ENB
Definition:
lte-test-interference.h:92
LteInterferenceTestCase
Test that SINR calculation and MCS selection works fine in a multi-cell interference scenario...
Definition:
lte-test-interference.h:51
LteInterferenceTestCase::m_ulMcs
uint16_t m_ulMcs
the UL MCS
Definition:
lte-test-interference.h:96
LteInterferenceTestSuite
Test suite for interference test.
Definition:
lte-test-interference.h:37
ns3::DlSchedulingCallbackInfo
DlSchedulingCallbackInfo structure.
Definition:
lte-common.h:239
Generated on Wed Nov 7 2018 10:02:03 for ns-3 by
1.8.14