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
buildings-pathloss-test.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 BUILDINGS_PATHLOSS_TEST_H
10
#define BUILDINGS_PATHLOSS_TEST_H
11
12
#include <ns3/hybrid-buildings-propagation-loss-model.h>
13
#include <ns3/test.h>
14
15
using namespace
ns3
;
16
17
/**
18
* @ingroup building-test
19
*
20
* Test 1.1 BuildingsPathlossModel Pathloss compound test
21
*
22
* This TestSuite tests the BuildingPathlossModel by reproducing
23
* several communication scenarios
24
*/
25
class
BuildingsPathlossTestSuite
:
public
TestSuite
26
{
27
public
:
28
BuildingsPathlossTestSuite
();
29
};
30
31
/**
32
* @ingroup building-test
33
*
34
* Test 1.1 BuildingsPathlossModel Pathloss test
35
*
36
*/
37
class
BuildingsPathlossTestCase
:
public
TestCase
38
{
39
public
:
40
/**
41
* Constructor
42
* @param freq Communication frequency
43
* @param m1 First MobilityModel Index
44
* @param m2 Second MobilityModel Index
45
* @param env Environment type
46
* @param city City size
47
* @param refValue Theoretical loss
48
* @param name Test name
49
*/
50
BuildingsPathlossTestCase
(
double
freq,
51
uint16_t
m1
,
52
uint16_t
m2
,
53
EnvironmentType
env,
54
CitySize
city,
55
double
refValue,
56
std::string name);
57
~BuildingsPathlossTestCase
()
override
;
58
59
private
:
60
void
DoRun
()
override
;
61
/**
62
* Create a mobility model based on its index
63
* @param index MobilityModel index
64
* @return The MobilityModel
65
*/
66
Ptr<MobilityModel>
CreateMobilityModel
(uint16_t index);
67
68
double
m_freq
;
//!< Communication frequency
69
uint16_t
m_mobilityModelIndex1
;
//!< First MobilityModel Index
70
uint16_t
m_mobilityModelIndex2
;
//!< Second MobilityModel Index
71
EnvironmentType
m_env
;
//!< Environment type
72
CitySize
m_city
;
//!< City size
73
double
m_lossRef
;
//!< Theoretical loss
74
};
75
76
#endif
/* BUILDING_PATHLOSS_TEST_H */
BuildingsPathlossTestCase
Test 1.1 BuildingsPathlossModel Pathloss test.
Definition
buildings-pathloss-test.h:38
BuildingsPathlossTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
buildings-pathloss-test.cc:229
BuildingsPathlossTestCase::CreateMobilityModel
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
Create a mobility model based on its index.
Definition
buildings-pathloss-test.cc:264
BuildingsPathlossTestCase::m_mobilityModelIndex2
uint16_t m_mobilityModelIndex2
Second MobilityModel Index.
Definition
buildings-pathloss-test.h:70
BuildingsPathlossTestCase::m_lossRef
double m_lossRef
Theoretical loss.
Definition
buildings-pathloss-test.h:73
BuildingsPathlossTestCase::m_city
CitySize m_city
City size.
Definition
buildings-pathloss-test.h:72
BuildingsPathlossTestCase::m_freq
double m_freq
Communication frequency.
Definition
buildings-pathloss-test.h:68
BuildingsPathlossTestCase::m_env
EnvironmentType m_env
Environment type.
Definition
buildings-pathloss-test.h:71
BuildingsPathlossTestCase::m_mobilityModelIndex1
uint16_t m_mobilityModelIndex1
First MobilityModel Index.
Definition
buildings-pathloss-test.h:69
BuildingsPathlossTestCase::~BuildingsPathlossTestCase
~BuildingsPathlossTestCase() override
Definition
buildings-pathloss-test.cc:224
BuildingsPathlossTestCase::BuildingsPathlossTestCase
BuildingsPathlossTestCase(double freq, uint16_t m1, uint16_t m2, EnvironmentType env, CitySize city, double refValue, std::string name)
Constructor.
Definition
buildings-pathloss-test.cc:207
BuildingsPathlossTestSuite
Test 1.1 BuildingsPathlossModel Pathloss compound test.
Definition
buildings-pathloss-test.h:26
BuildingsPathlossTestSuite::BuildingsPathlossTestSuite
BuildingsPathlossTestSuite()
Definition
buildings-pathloss-test.cc:32
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TestCase
encapsulates test code
Definition
test.h:1050
ns3::TestSuite
A suite of tests to run.
Definition
test.h:1267
ns3::EnvironmentType
EnvironmentType
The type of propagation environment.
Definition
propagation-environment.h:24
ns3::CitySize
CitySize
The size of the city in which propagation takes place.
Definition
propagation-environment.h:37
MRG32k3a::m1
const double m1
First component modulus, 232 - 209.
Definition
rng-stream.cc:49
MRG32k3a::m2
const double m2
Second component modulus, 232 - 22853.
Definition
rng-stream.cc:52
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
buildings
test
buildings-pathloss-test.h
Generated on Wed Dec 11 2024 18:20:38 for ns-3 by
1.11.0