A Discrete-Event Network Simulator
API
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
28using namespace ns3;
29
30
38{
39public:
41};
42
43
52{
53public:
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
75
84 void UlScheduling (uint32_t frameNo, uint32_t subframeNo, uint16_t rnti,
85 uint8_t mcs, uint16_t sizeTb);
86
87private:
88 virtual void DoRun (void);
89
90
91 double m_d1;
92 double m_d2;
95 uint16_t m_dlMcs;
96 uint16_t m_ulMcs;
97};
98
99#endif /* LTE_TEST_INTERFERENCE_H */
Test that SINR calculation and MCS selection works fine in a multi-cell interference scenario.
LteInterferenceTestCase(std::string name, double d1, double d2, double dlSinr, double ulSinr, double dlSe, double ulSe, uint16_t dlMcs, uint16_t ulMcs)
Constructor.
double m_expectedDlSinrDb
expected DL SINR in dB
void UlScheduling(uint32_t frameNo, uint32_t subframeNo, uint16_t rnti, uint8_t mcs, uint16_t sizeTb)
UL scheduling function.
double m_expectedUlSinrDb
expected UL SINR in dB
void DlScheduling(DlSchedulingCallbackInfo dlInfo)
DL scheduling function.
double m_d2
distance between UE and other ENB
virtual void DoRun(void)
Implementation to actually run this TestCase.
double m_d1
distance between UE and ENB
Test suite for interference test.
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.
DlSchedulingCallbackInfo structure.
Definition: lte-common.h:240