A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-amc.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
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
* Original Author: Giuseppe Piro <g.piro@poliba.it>
19
* Modified by: Nicola Baldo <nbaldo@cttc.es>
20
* Modified by: Marco Miozzo <mmiozzo@cttc.es>
21
*/
22
23
#ifndef AMCMODULE_H
24
#define AMCMODULE_H
25
26
#include <vector>
27
#include <ns3/ptr.h>
28
#include <ns3/object.h>
29
30
namespace
ns3 {
31
32
class
SpectrumValue;
33
43
class
LteAmc
:
public
Object
44
{
45
46
public
:
47
static
TypeId
GetTypeId
(
void
);
48
49
LteAmc
();
50
virtual
~LteAmc
();
51
52
enum
AmcModel
53
{
54
PiroEW2010
,
55
// model based on Piro, G.; Grieco, L.A.; Boggia, G.; Camarda, P.;
56
//A two-level scheduling algorithm for QoS support in the downlink of
57
//LTE cellular networks European Wireless Conference (EW), 2010
58
MiErrorModel
// model based on 10% of BER according to LteMiErrorModel
59
};
60
67
/*static*/
int
GetMcsFromCqi
(
int
cqi);
68
75
/*static*/
int
GetTbSizeFromMcs
(
int
mcs,
int
nprb);
76
83
/*static*/
double
GetSpectralEfficiencyFromCqi
(
int
cqi);
84
91
/*static*/
std::vector<int>
CreateCqiFeedbacks
(
const
SpectrumValue
& sinr,
92
uint8_t rbgSize = 0);
93
101
/*static*/
int
GetCqiFromSpectralEfficiency
(
double
s
);
102
103
private
:
104
105
double
m_ber
;
106
AmcModel
m_amcModel
;
107
108
109
110
};
111
112
113
}
114
115
#endif
/* AMCMODULE_H */
ns3::LteAmc::GetMcsFromCqi
int GetMcsFromCqi(int cqi)
Get the Modulation anc Coding Scheme for a CQI value.
Definition:
lte-amc.cc:254
ns3::LteAmc::AmcModel
AmcModel
Definition:
lte-amc.h:52
ns3::LteAmc::GetCqiFromSpectralEfficiency
int GetCqiFromSpectralEfficiency(double s)
Get a proper CQI for the spectrale efficiency value.
Definition:
lte-amc.cc:239
ns3::LteAmc::~LteAmc
virtual ~LteAmc()
Definition:
lte-amc.cc:213
ns3::LteAmc::m_amcModel
AmcModel m_amcModel
Definition:
lte-amc.h:106
s
Ptr< SampleEmitter > s
Definition:
double-probe-test-suite.cc:51
ns3::LteAmc::m_ber
double m_ber
Definition:
lte-amc.h:105
ns3::LteAmc::LteAmc
LteAmc()
Definition:
lte-amc.cc:208
ns3::LteAmc
The LteAmc class implements the Adaptive Modulation And Coding Scheme as proposed in 3GPP TSG-RAN WG1...
Definition:
lte-amc.h:43
ns3::LteAmc::GetTbSizeFromMcs
int GetTbSizeFromMcs(int mcs, int nprb)
Get the Transport Block Size for a selected MCS and number of PRB (table 7.1.7.2.1-1 of 36...
Definition:
lte-amc.cc:269
ns3::LteAmc::GetSpectralEfficiencyFromCqi
double GetSpectralEfficiencyFromCqi(int cqi)
Get the spectral efficiency value associated to the received CQI.
Definition:
lte-amc.cc:282
ns3::LteAmc::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-amc.cc:218
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::LteAmc::PiroEW2010
Definition:
lte-amc.h:54
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:57
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::LteAmc::CreateCqiFeedbacks
std::vector< int > CreateCqiFeedbacks(const SpectrumValue &sinr, uint8_t rbgSize=0)
Create a message with CQI feedback.
Definition:
lte-amc.cc:292
ns3::LteAmc::MiErrorModel
Definition:
lte-amc.h:58
src
lte
model
lte-amc.h
Generated on Sat Apr 19 2014 14:06:59 for ns-3 by
1.8.6