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-shadowing-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_SHADOWING_TEST_H
10
#define BUILDINGS_SHADOWING_TEST_H
11
12
#include "ns3/ptr.h"
13
#include "ns3/test.h"
14
15
namespace
ns3
16
{
17
class
MobilityModel
;
18
}
19
20
using namespace
ns3
;
21
22
/**
23
* \ingroup building-test
24
*
25
* Shadowing compound test
26
*
27
* This TestSuite tests the shadowing model of BuildingPathlossModel
28
* by reproducing several communication scenarios
29
*/
30
class
BuildingsShadowingTestSuite
:
public
TestSuite
31
{
32
public
:
33
BuildingsShadowingTestSuite
();
34
};
35
36
/**
37
* \ingroup building-test
38
*
39
* Shadowing test
40
*/
41
class
BuildingsShadowingTestCase
:
public
TestCase
42
{
43
public
:
44
/**
45
* Constructor
46
* \param m1 First MobilityModel Index
47
* \param m2 Second MobilityModel Index
48
* \param refValue Theoretical loss
49
* \param sigmaRef Theoretical loss standard deviation
50
* \param name Test name
51
*/
52
BuildingsShadowingTestCase
(uint16_t
m1
,
53
uint16_t
m2
,
54
double
refValue,
55
double
sigmaRef,
56
std::string name);
57
~BuildingsShadowingTestCase
()
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
uint16_t
m_mobilityModelIndex1
;
//!< First MobilityModel Index
69
uint16_t
m_mobilityModelIndex2
;
//!< Second MobilityModel Index
70
double
m_lossRef
;
//!< pathloss value (without shadowing)
71
double
m_sigmaRef
;
//!< pathloss standard deviation value reference value
72
};
73
74
#endif
/*BUILDINGS_SHADOWING_TEST_H*/
BuildingsShadowingTestCase
Shadowing test.
Definition
buildings-shadowing-test.h:42
BuildingsShadowingTestCase::m_mobilityModelIndex2
uint16_t m_mobilityModelIndex2
Second MobilityModel Index.
Definition
buildings-shadowing-test.h:69
BuildingsShadowingTestCase::~BuildingsShadowingTestCase
~BuildingsShadowingTestCase() override
Definition
buildings-shadowing-test.cc:74
BuildingsShadowingTestCase::CreateMobilityModel
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
Create a mobility model based on its index.
Definition
buildings-shadowing-test.cc:137
BuildingsShadowingTestCase::m_mobilityModelIndex1
uint16_t m_mobilityModelIndex1
First MobilityModel Index.
Definition
buildings-shadowing-test.h:68
BuildingsShadowingTestCase::m_lossRef
double m_lossRef
pathloss value (without shadowing)
Definition
buildings-shadowing-test.h:70
BuildingsShadowingTestCase::DoRun
void DoRun() override
Implementation to actually run this TestCase.
Definition
buildings-shadowing-test.cc:79
BuildingsShadowingTestCase::BuildingsShadowingTestCase
BuildingsShadowingTestCase(uint16_t m1, uint16_t m2, double refValue, double sigmaRef, std::string name)
Constructor.
Definition
buildings-shadowing-test.cc:61
BuildingsShadowingTestCase::m_sigmaRef
double m_sigmaRef
pathloss standard deviation value reference value
Definition
buildings-shadowing-test.h:71
BuildingsShadowingTestSuite
Shadowing compound test.
Definition
buildings-shadowing-test.h:31
BuildingsShadowingTestSuite::BuildingsShadowingTestSuite
BuildingsShadowingTestSuite()
Definition
buildings-shadowing-test.cc:36
ns3::MobilityModel
Keep track of the current position and velocity of an object.
Definition
mobility-model.h:29
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
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-shadowing-test.h
Generated on Fri Nov 8 2024 13:58:59 for ns-3 by
1.11.0