5G-LENA nr-v3.0-33-g7aea1e4
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
scenario-parameters.h
1/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
3// Copyright (c) 2019 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4//
5// SPDX-License-Identifier: GPL-2.0-only
6
7#ifndef SCENARIO_PARAMETERS_H
8#define SCENARIO_PARAMETERS_H
9
10#include <ns3/vector.h>
11
12namespace ns3
13{
14
19{
20 public:
25 {
26 NONE = 0,
27 SINGLE = 1,
28 TRIPLE = 3
29 };
30
34 virtual ~ScenarioParameters();
35
40 void SetBsHeight(double h);
41
46 void SetUtHeight(double h);
47
51 uint32_t GetNumSectorsPerSite() const;
52
59 void SetSectorization(uint32_t numSectors);
60
65 void SetScenarioParameters(const std::string& scenario);
66
71 void SetScenarioParameters(const ScenarioParameters& scenario);
72
76 void SetUMaParameters();
77
81 void SetUMiParameters();
82
86 void SetRMaParameters();
87
88 // Keep the data members public to facilitate defining custom scenarios
89 double m_isd{-1.0};
90 double m_bsHeight{-1.0};
91 double m_utHeight{-1.0};
93 double m_minBsUtDistance{-1.0};
94 double m_antennaOffset{-1.0};
95
97 static double MAX_ANTENNA_OFFSET;
98};
99
100} // namespace ns3
101
102#endif // SCENARIO_PARAMETERS_H
Basic simulation scenario parameters.
void SetUMiParameters()
Sets the Urban Micro (UMi) scenario parameters.
void SetUMaParameters()
Sets the Urban Macro (UMa) scenario parameters.
void SetBsHeight(double h)
SetGnbHeight.
double m_isd
Inter-site distance (ISD) in meters.
uint32_t GetNumSectorsPerSite() const
Gets the number of sectors per site.
void SetUtHeight(double h)
SetUeHeight.
SiteSectorizationType m_sectorization
Number of sectors per site.
double m_bsHeight
Height of gNB nodes.
void SetRMaParameters()
Sets rural Macro scenario parameters.
virtual ~ScenarioParameters()
~ScenarioParameters
void SetSectorization(SiteSectorizationType numSectors)
Sets the number of sectors of every site.
double m_minBsUtDistance
Minimum distance between BS and UT in meters.
SiteSectorizationType
Type of site sectorization.
@ NONE
Unconfigured value.
@ TRIPLE
Site with 3 120º-width sectors.
@ SINGLE
Site with a 360º-width sector.
void SetScenarioParameters(const std::string &scenario)
Sets parameters to the specified scenario.
double m_utHeight
Height of UE nodes.
double m_antennaOffset
Cell antenna offset in meters w.r.t. site location.