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-pathloss-model.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: Marco Miozzo <marco.miozzo@cttc.es>
7
*/
8
9
#ifndef LTE_TEST_PATHLOSS_MODEL_H
10
#define LTE_TEST_PATHLOSS_MODEL_H
11
12
#include "ns3/lte-common.h"
13
#include "ns3/spectrum-value.h"
14
#include "ns3/test.h"
15
#include <ns3/buildings-propagation-loss-model.h>
16
17
using namespace
ns3
;
18
19
/**
20
* \ingroup lte-test
21
*
22
* \brief Test 1.1 pathloss calculation
23
*/
24
class
LtePathlossModelTestSuite
:
public
TestSuite
25
{
26
public
:
27
LtePathlossModelTestSuite
();
28
};
29
30
/**
31
* \ingroup lte-test
32
*
33
* \brief Tests that the BuildingPathlossModel works according to
34
* the expected theoretical values. Theoretical reference values
35
* are obtained with the octave script src/lte/test/reference/lte_pathloss.m
36
*/
37
class
LtePathlossModelSystemTestCase
:
public
TestCase
38
{
39
public
:
40
/**
41
* Constructor
42
*
43
* \param name the reference name
44
* \param snrDb the SNR in dB
45
* \param dist the distance
46
* \param mcsIndex the MCS index
47
*/
48
LtePathlossModelSystemTestCase
(std::string name,
double
snrDb,
double
dist, uint16_t mcsIndex);
49
LtePathlossModelSystemTestCase
();
50
~LtePathlossModelSystemTestCase
()
override
;
51
52
/**
53
* \brief DL scheduling function
54
* \param dlInfo the DL info
55
*/
56
void
DlScheduling
(
DlSchedulingCallbackInfo
dlInfo);
57
58
private
:
59
void
DoRun
()
override
;
60
61
double
m_snrDb
;
///< the SNR in dB
62
double
m_distance
;
///< the distance
63
uint16_t
m_mcsIndex
;
///< the MCS index
64
};
65
66
#endif
/* LTE_TEST_PATHLOSS_MODEL_H */
LtePathlossModelSystemTestCase
Tests that the BuildingPathlossModel works according to the expected theoretical values.
Definition
lte-test-pathloss-model.h:38
LtePathlossModelSystemTestCase::m_snrDb
double m_snrDb
the SNR in dB
Definition
lte-test-pathloss-model.h:61
LtePathlossModelSystemTestCase::m_distance
double m_distance
the distance
Definition
lte-test-pathloss-model.h:62
LtePathlossModelSystemTestCase::DlScheduling
void DlScheduling(DlSchedulingCallbackInfo dlInfo)
DL scheduling function.
Definition
lte-test-pathloss-model.cc:260
LtePathlossModelSystemTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
lte-test-pathloss-model.cc:160
LtePathlossModelSystemTestCase::LtePathlossModelSystemTestCase
LtePathlossModelSystemTestCase()
LtePathlossModelSystemTestCase::~LtePathlossModelSystemTestCase
~LtePathlossModelSystemTestCase() override
Definition
lte-test-pathloss-model.cc:155
LtePathlossModelSystemTestCase::m_mcsIndex
uint16_t m_mcsIndex
the MCS index
Definition
lte-test-pathloss-model.h:63
LtePathlossModelTestSuite
Test 1.1 pathloss calculation.
Definition
lte-test-pathloss-model.h:25
LtePathlossModelTestSuite::LtePathlossModelTestSuite
LtePathlossModelTestSuite()
Definition
lte-test-pathloss-model.cc:57
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-pathloss-model.h
Generated on Fri Nov 8 2024 13:59:04 for ns-3 by
1.11.0