A Discrete-Event Network Simulator
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
15using 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 */
26{
27 public:
29};
30
31/**
32 * \ingroup building-test
33 *
34 * Test 1.1 BuildingsPathlossModel Pathloss test
35 *
36 */
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,
54 CitySize city,
55 double refValue,
56 std::string name);
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 */
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 */
Test 1.1 BuildingsPathlossModel Pathloss test.
void DoRun() override
Implementation to actually run this TestCase.
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
Create a mobility model based on its index.
uint16_t m_mobilityModelIndex2
Second MobilityModel Index.
double m_lossRef
Theoretical loss.
double m_freq
Communication frequency.
EnvironmentType m_env
Environment type.
uint16_t m_mobilityModelIndex1
First MobilityModel Index.
BuildingsPathlossTestCase(double freq, uint16_t m1, uint16_t m2, EnvironmentType env, CitySize city, double refValue, std::string name)
Constructor.
Test 1.1 BuildingsPathlossModel Pathloss compound test.
Smart pointer class similar to boost::intrusive_ptr.
encapsulates test code
Definition test.h:1050
A suite of tests to run.
Definition test.h:1267
EnvironmentType
The type of propagation environment.
CitySize
The size of the city in which propagation takes place.
const double m1
First component modulus, 232 - 209.
Definition rng-stream.cc:49
const double m2
Second component modulus, 232 - 22853.
Definition rng-stream.cc:52
Every class exported by the ns3 library is enclosed in the ns3 namespace.