Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
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 * Author: Giuseppe Piro <g.piro@poliba.it> | |
19 */ | |
20 | |
21 #ifndef AMCMODULE_H | |
22 #define AMCMODULE_H | |
23 | |
24 #include "ns3/object.h" | |
25 | |
26 namespace ns3 { | |
27 | |
28 | |
29 /** | |
30 * \brief The AMC module attached to the LTE networ device | |
31 * | |
32 * AmcModule class implements the Adaptive Modulation And Coding Scheme | |
33 * as proposed in 3GPP TSG-RAN WG1 - R1-081483 | |
34 * http://www.3gpp.org/ftp/tsg_ran/WG1_RL1/TSGR1_52b/Docs/R1-081483.zip | |
35 */ | |
36 | |
37 class AmcModule : public Object | |
38 { | |
39 | |
40 public: | |
41 ·· | |
42 static TypeId GetTypeId (void); | |
43 | |
44 AmcModule (); | |
45 virtual ~AmcModule (); | |
46 | |
47 /** | |
48 * Initialize CQI, MCS, SpectralEfficiency e TBs values· | |
49 */ | |
50 void Initialize (); | |
51 | |
52 /** | |
53 * Get CQI values | |
54 * \return CQI valuesi | |
55 */ | |
56 int* GetCqi (); | |
Nicola Baldo
2010/07/20 12:41:41
About all these functions that return a pointer to
GiuseppePiro
2010/07/22 16:17:11
Done!
| |
57 | |
58 /** | |
59 * Get MCS values | |
60 * \return MCS values | |
61 */ | |
62 int* GetMcs (); | |
63 | |
64 /** | |
65 * Get spectral efficiency values | |
66 * \return spectral efficiency values | |
67 */ | |
68 double* GetSpectralEfficiencyForCqiIndex (); | |
69 | |
70 double* GetSpectralEfficiencyForMCSIndex (); | |
71 | |
72 | |
73 /** | |
74 * Get TBs values | |
75 * \return TBs values | |
76 */ | |
77 int* GetTBSize ();· | |
78 | |
79 | |
80 /** | |
81 * Get a proper CQI for the spectrale· | |
Nicola Baldo
2010/07/20 12:41:41
s is approximated to the nearest value? or to the
GiuseppePiro
2010/07/22 16:17:11
It is the lower value. In this way infact, since t
| |
82 * efficiency value | |
83 * \return the CQI value | |
84 */ | |
85 int GetCqiFromFromSpectralEfficiency(double s); | |
86 | |
87 /** | |
88 * Get the Modulation anc Coding Scheme for | |
89 * a CQI value | |
90 * \return the MCS value | |
91 */ | |
92 int GetMCSFromCQI (int cqi); | |
93 | |
94 /** | |
95 * Get the Transport Block Size for a selected MCS | |
96 * \return the TBs value | |
97 */ | |
98 int GetTBSizeFromMCS (int mcs); | |
99 | |
100 /** | |
101 * Get the spectral efficiency value associated | |
102 * to the received CQI | |
103 * \return the spectral efficiency value | |
104 */ | |
105 double GetSpectralEfficiencyFromCQI (int cqi); | |
106 | |
107 private: | |
108 | |
109 }; | |
110 | |
111 | |
112 } | |
113 | |
114 #endif /* AMCMODULE_H */ | |
OLD | NEW |