A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-global-pathloss-database.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011,2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Nicola Baldo <nbaldo@cttc.es>
18
*/
19
20
#ifndef LTE_GLOBAL_PATHLOSS_DATABASE_H
21
#define LTE_GLOBAL_PATHLOSS_DATABASE_H
22
23
#include <ns3/log.h>
24
#include <ns3/ptr.h>
25
26
#include <map>
27
#include <string>
28
29
namespace
ns3
30
{
31
32
class
SpectrumPhy;
33
42
class
LteGlobalPathlossDatabase
43
{
44
public
:
45
virtual
~LteGlobalPathlossDatabase
();
46
55
virtual
void
UpdatePathloss
(std::string context,
56
Ptr<const SpectrumPhy>
txPhy,
57
Ptr<const SpectrumPhy>
rxPhy,
58
double
lossDb) = 0;
59
68
double
GetPathloss
(uint16_t cellId, uint64_t imsi);
69
74
void
Print
();
75
76
protected
:
81
std::map<uint16_t, std::map<uint64_t, double>>
m_pathlossMap
;
82
};
83
88
class
DownlinkLteGlobalPathlossDatabase
:
public
LteGlobalPathlossDatabase
89
{
90
public
:
91
// inherited from LteGlobalPathlossDatabase
92
void
UpdatePathloss
(std::string context,
93
Ptr<const SpectrumPhy>
txPhy,
94
Ptr<const SpectrumPhy>
rxPhy,
95
double
lossDb)
override
;
96
};
97
102
class
UplinkLteGlobalPathlossDatabase
:
public
LteGlobalPathlossDatabase
103
{
104
public
:
105
// inherited from LteGlobalPathlossDatabase
106
void
UpdatePathloss
(std::string context,
107
Ptr<const SpectrumPhy>
txPhy,
108
Ptr<const SpectrumPhy>
rxPhy,
109
double
lossDb)
override
;
110
};
111
112
}
// namespace ns3
113
114
#endif
// LTE_GLOBAL_PATHLOSS_DATABASE_H
ns3::DownlinkLteGlobalPathlossDatabase
Store the last pathloss value for each TX-RX pair for downlink.
Definition:
lte-global-pathloss-database.h:89
ns3::DownlinkLteGlobalPathlossDatabase::UpdatePathloss
void UpdatePathloss(std::string context, Ptr< const SpectrumPhy > txPhy, Ptr< const SpectrumPhy > rxPhy, double lossDb) override
update the pathloss value
Definition:
lte-global-pathloss-database.cc:69
ns3::LteGlobalPathlossDatabase
Store the last pathloss value for each TX-RX pair.
Definition:
lte-global-pathloss-database.h:43
ns3::LteGlobalPathlossDatabase::GetPathloss
double GetPathloss(uint16_t cellId, uint64_t imsi)
Definition:
lte-global-pathloss-database.cc:52
ns3::LteGlobalPathlossDatabase::m_pathlossMap
std::map< uint16_t, std::map< uint64_t, double > > m_pathlossMap
List of the last pathloss value for each UE by CellId.
Definition:
lte-global-pathloss-database.h:81
ns3::LteGlobalPathlossDatabase::Print
void Print()
print the stored pathloss values to standard output
Definition:
lte-global-pathloss-database.cc:38
ns3::LteGlobalPathlossDatabase::UpdatePathloss
virtual void UpdatePathloss(std::string context, Ptr< const SpectrumPhy > txPhy, Ptr< const SpectrumPhy > rxPhy, double lossDb)=0
update the pathloss value
ns3::LteGlobalPathlossDatabase::~LteGlobalPathlossDatabase
virtual ~LteGlobalPathlossDatabase()
Definition:
lte-global-pathloss-database.cc:33
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:77
ns3::UplinkLteGlobalPathlossDatabase
Store the last pathloss value for each TX-RX pair for uplink.
Definition:
lte-global-pathloss-database.h:103
ns3::UplinkLteGlobalPathlossDatabase::UpdatePathloss
void UpdatePathloss(std::string context, Ptr< const SpectrumPhy > txPhy, Ptr< const SpectrumPhy > rxPhy, double lossDb) override
update the pathloss value
Definition:
lte-global-pathloss-database.cc:81
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
helper
lte-global-pathloss-database.h
Generated on Sun Mar 3 2024 17:11:01 for ns-3 by
1.9.1