A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
lte-test-link-adaptation.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Manuel Requena <manuel.requena@cttc.es>
7
*/
8
9
#ifndef LTE_TEST_LINK_ADAPTATION_H
10
#define LTE_TEST_LINK_ADAPTATION_H
11
12
#include "ns3/lte-common.h"
13
#include "ns3/test.h"
14
15
using namespace
ns3
;
16
17
/**
18
* \ingroup lte-test
19
*
20
* \brief Test 1.3 Link adaptation
21
*/
22
class
LteLinkAdaptationTestSuite
:
public
TestSuite
23
{
24
public
:
25
LteLinkAdaptationTestSuite
();
26
};
27
28
/**
29
* \ingroup lte-test
30
*
31
* \brief Test that LTE link adaptation works according to the theoretical model.
32
*/
33
class
LteLinkAdaptationTestCase
:
public
TestCase
34
{
35
public
:
36
/**
37
* Constructor
38
*
39
* \param name the reference name
40
* \param snrDb the SNR in dB
41
* \param loss the loss
42
* \param mcsIndex the DL se
43
*/
44
LteLinkAdaptationTestCase
(std::string name,
double
snrDb,
double
loss, uint16_t mcsIndex);
45
LteLinkAdaptationTestCase
();
46
~LteLinkAdaptationTestCase
()
override
;
47
48
/**
49
* \brief DL scheduling function
50
* \param dlInfo the DL info
51
*/
52
void
DlScheduling
(
DlSchedulingCallbackInfo
dlInfo);
53
54
private
:
55
void
DoRun
()
override
;
56
57
double
m_snrDb
;
///< the SNR in dB
58
double
m_loss
;
///< the loss
59
uint16_t
m_mcsIndex
;
///< the MCS index
60
};
61
62
#endif
/* LTE_TEST_LINK_ADAPTATION_H */
LteLinkAdaptationTestCase
Test that LTE link adaptation works according to the theoretical model.
Definition
lte-test-link-adaptation.h:34
LteLinkAdaptationTestCase::DlScheduling
void DlScheduling(DlSchedulingCallbackInfo dlInfo)
DL scheduling function.
Definition
lte-test-link-adaptation.cc:208
LteLinkAdaptationTestCase::LteLinkAdaptationTestCase
LteLinkAdaptationTestCase()
LteLinkAdaptationTestCase::m_loss
double m_loss
the loss
Definition
lte-test-link-adaptation.h:58
LteLinkAdaptationTestCase::~LteLinkAdaptationTestCase
~LteLinkAdaptationTestCase() override
Definition
lte-test-link-adaptation.cc:123
LteLinkAdaptationTestCase::m_mcsIndex
uint16_t m_mcsIndex
the MCS index
Definition
lte-test-link-adaptation.h:59
LteLinkAdaptationTestCase::m_snrDb
double m_snrDb
the SNR in dB
Definition
lte-test-link-adaptation.h:57
LteLinkAdaptationTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-link-adaptation.cc:128
LteLinkAdaptationTestSuite
Test 1.3 Link adaptation.
Definition
lte-test-link-adaptation.h:23
LteLinkAdaptationTestSuite::LteLinkAdaptationTestSuite
LteLinkAdaptationTestSuite()
TestSuite.
Definition
lte-test-link-adaptation.cc:43
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::DlSchedulingCallbackInfo
DlSchedulingCallbackInfo structure.
Definition
lte-common.h:226
src
lte
test
lte-test-link-adaptation.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0