A Discrete-Event Network Simulator
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
15namespace ns3
16{
17class MobilityModel;
18}
19
20using 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 */
31{
32 public:
34};
35
36/**
37 * @ingroup building-test
38 *
39 * Shadowing test
40 */
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 */
53 uint16_t m2,
54 double refValue,
55 double sigmaRef,
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 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*/
uint16_t m_mobilityModelIndex2
Second MobilityModel Index.
Ptr< MobilityModel > CreateMobilityModel(uint16_t index)
Create a mobility model based on its index.
uint16_t m_mobilityModelIndex1
First MobilityModel Index.
double m_lossRef
pathloss value (without shadowing)
void DoRun() override
Implementation to actually run this TestCase.
BuildingsShadowingTestCase(uint16_t m1, uint16_t m2, double refValue, double sigmaRef, std::string name)
Constructor.
double m_sigmaRef
pathloss standard deviation value reference value
Keep track of the current position and velocity of an object.
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
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.