A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lte-control-messages.cc
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  * Author: Giuseppe Piro <g.piro@poliba.it>
19  * Marco Miozzo <marco.miozzo@cttc.es>
20  */
21 
22 #include "lte-control-messages.h"
23 #include "ns3/address-utils.h"
24 #include "ns3/uinteger.h"
25 #include "ns3/log.h"
26 #include "lte-net-device.h"
27 #include "lte-ue-net-device.h"
28 
29 NS_LOG_COMPONENT_DEFINE ("LteControlMessage");
30 
31 
32 namespace ns3 {
33 
35  : m_source (0),
36  m_destination (0)
37 {
38 }
39 
40 
42 {
43  m_source = 0;
44  m_destination = 0;
45 }
46 
47 
48 void
50 {
51  m_type = type;
52 }
53 
54 
57 {
58  return m_type;
59 }
60 
61 
62 // ----------------------------------------------------------------------------------------------------------
63 
64 
66 {
68 }
69 
70 
72 {
73 
74 }
75 
76 void
78 {
79  m_dci = dci;
80 
81 }
82 
83 
86 {
87  return m_dci;
88 }
89 
90 
91 // ----------------------------------------------------------------------------------------------------------
92 
93 
95 {
97 }
98 
99 
101 {
102 
103 }
104 
105 void
107 {
108  m_dci = dci;
109 
110 }
111 
112 
115 {
116  return m_dci;
117 }
118 
119 
120 // ----------------------------------------------------------------------------------------------------------
121 
122 
124 {
126 }
127 
128 
130 {
131 
132 }
133 
134 void
136 {
137  m_dlCqi = dlcqi;
138 
139 }
140 
141 
144 {
145  return m_dlCqi;
146 }
147 
148 
149 
150 // ----------------------------------------------------------------------------------------------------------
151 
152 
154 {
156 }
157 
158 
160 {
161 
162 }
163 
164 void
166 {
167  m_bsr = bsr;
168 
169 }
170 
171 
174 {
175  return m_bsr;
176 }
177 
178 
179 } // namespace ns3
180