5G-LENA nr-v3.0-33-g7aea1e4
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
scenario-parameters.cc
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#include "scenario-parameters.h"
8
9namespace ns3
10{
11
13
17
18void
23
24void
29
30uint32_t
32{
33 return static_cast<uint32_t>(m_sectorization);
34}
35
36void
41
42void
44{
45 SetSectorization(static_cast<SiteSectorizationType>(numSectors));
46}
47
48void
50{
51 if (scenario == "UMa")
52 {
54 }
55 else if (scenario == "UMi")
56 {
58 }
59 else if (scenario == "RMa")
60 {
62 }
63 else
64 {
65 NS_ABORT_MSG("Unrecognized scenario: " << scenario);
66 }
67}
68
69void
79
80void
82{
83 m_isd = 1732;
84 m_bsHeight = 30.0;
85 m_utHeight = 1.5;
87 m_minBsUtDistance = 30.203; // minimum 2D distance is 10 meters considering UE height of 1.5 m
88 m_antennaOffset = 1.0;
89}
90
91void
101
102void
104{
105 m_isd = 7000;
106 m_bsHeight = 45.0;
107 m_utHeight = 1.5;
109 m_minBsUtDistance = 44.63; // minimum 2D distance is 10 meters considering UE height of 1.5 m
110 m_antennaOffset = 1.0;
111}
112
113} // namespace ns3
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.
@ TRIPLE
Site with 3 120ยบ-width sectors.
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.