A Discrete-Event Network Simulator
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
17using namespace ns3;
18
19/**
20 * \ingroup lte-test
21 *
22 * \brief Test 1.1 pathloss calculation
23 */
25{
26 public:
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 */
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);
51
52 /**
53 * \brief DL scheduling function
54 * \param dlInfo the DL info
55 */
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 */
Tests that the BuildingPathlossModel works according to the expected theoretical values.
void DlScheduling(DlSchedulingCallbackInfo dlInfo)
DL scheduling function.
void DoRun() override
Implementation to actually run this TestCase.
Test 1.1 pathloss calculation.
encapsulates test code
Definition test.h:1050
A suite of tests to run.
Definition test.h:1267
Every class exported by the ns3 library is enclosed in the ns3 namespace.
DlSchedulingCallbackInfo structure.
Definition lte-common.h:226