A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-hex-grid-enb-topology-helper.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Nicola Baldo <nbaldo@cttc.es>
19
*/
20
21
#ifndef LTE_HEX_GRID_ENB_TOPOLOGY_HELPER_H
22
#define LTE_HEX_GRID_ENB_TOPOLOGY_HELPER_H
23
24
#include <ns3/lte-helper.h>
25
26
namespace
ns3
{
27
36
class
LteHexGridEnbTopologyHelper
:
public
Object
37
{
38
public
:
39
LteHexGridEnbTopologyHelper
(
void
);
40
virtual
~LteHexGridEnbTopologyHelper
(
void
);
41
46
static
TypeId
GetTypeId
(
void
);
47
virtual
void
DoDispose
(
void
);
48
49
62
void
SetLteHelper
(
Ptr<LteHelper>
h);
63
72
NetDeviceContainer
SetPositionAndInstallEnbDevice
(
NodeContainer
c);
73
74
private
:
78
Ptr<LteHelper>
m_lteHelper
;
79
84
double
m_offset
;
85
89
double
m_d
;
90
94
double
m_xMin
;
95
99
double
m_yMin
;
100
105
uint32_t
m_gridWidth
;
106
110
uint32_t
m_siteHeight
;
111
112
};
113
114
115
}
// namespace ns3
116
117
118
119
#endif
// LTE_HEX_GRID_ENB_TOPOLOGY_HELPER_H
ns3::LteHexGridEnbTopologyHelper
This helper class allows to easily create a topology with eNBs grouped in three-sector sites laid out...
Definition:
lte-hex-grid-enb-topology-helper.h:37
ns3::LteHexGridEnbTopologyHelper::GetTypeId
static TypeId GetTypeId(void)
Register this type.
Definition:
lte-hex-grid-enb-topology-helper.cc:47
ns3::LteHexGridEnbTopologyHelper::m_d
double m_d
The distance [m] between nearby sites.
Definition:
lte-hex-grid-enb-topology-helper.h:89
ns3::LteHexGridEnbTopologyHelper::m_xMin
double m_xMin
The x coordinate where the hex grid starts.
Definition:
lte-hex-grid-enb-topology-helper.h:94
ns3::LteHexGridEnbTopologyHelper::m_lteHelper
Ptr< LteHelper > m_lteHelper
Pointer to LteHelper object.
Definition:
lte-hex-grid-enb-topology-helper.h:78
ns3::LteHexGridEnbTopologyHelper::~LteHexGridEnbTopologyHelper
virtual ~LteHexGridEnbTopologyHelper(void)
Definition:
lte-hex-grid-enb-topology-helper.cc:42
ns3::LteHexGridEnbTopologyHelper::m_yMin
double m_yMin
The y coordinate where the hex grid starts.
Definition:
lte-hex-grid-enb-topology-helper.h:99
ns3::LteHexGridEnbTopologyHelper::m_gridWidth
uint32_t m_gridWidth
The number of sites in even rows (odd rows will have one additional site)
Definition:
lte-hex-grid-enb-topology-helper.h:105
ns3::LteHexGridEnbTopologyHelper::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
lte-hex-grid-enb-topology-helper.cc:87
ns3::LteHexGridEnbTopologyHelper::SetPositionAndInstallEnbDevice
NetDeviceContainer SetPositionAndInstallEnbDevice(NodeContainer c)
Position the nodes on a hex grid and install the corresponding EnbNetDevices with antenna boresight c...
Definition:
lte-hex-grid-enb-topology-helper.cc:102
ns3::LteHexGridEnbTopologyHelper::m_offset
double m_offset
The offset [m] in the position for the node of each sector with respect to the center of the three-se...
Definition:
lte-hex-grid-enb-topology-helper.h:84
ns3::LteHexGridEnbTopologyHelper::SetLteHelper
void SetLteHelper(Ptr< LteHelper > h)
Set the LteHelper to be used to actually create the EnbNetDevices.
Definition:
lte-hex-grid-enb-topology-helper.cc:95
ns3::LteHexGridEnbTopologyHelper::m_siteHeight
uint32_t m_siteHeight
The height [m] of each site.
Definition:
lte-hex-grid-enb-topology-helper.h:110
ns3::LteHexGridEnbTopologyHelper::LteHexGridEnbTopologyHelper
LteHexGridEnbTopologyHelper(void)
Definition:
lte-hex-grid-enb-topology-helper.cc:37
ns3::NetDeviceContainer
holds a vector of ns3::NetDevice pointers
Definition:
net-device-container.h:42
ns3::NodeContainer
keep track of a set of node pointers.
Definition:
node-container.h:39
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:88
ns3::Ptr< LteHelper >
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
helper
lte-hex-grid-enb-topology-helper.h
Generated on Tue Feb 6 2024 19:21:21 for ns-3 by
1.9.1