A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ideal-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 "ideal-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 ("IdealControlMessage");
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_source = src;
52 }
53 
54 
55 void
57 {
58  m_destination = dst;
59 }
60 
61 
64 {
65  return m_source;
66 }
67 
68 
71 {
72  return m_destination;
73 }
74 
75 
76 void
78 {
79  m_type = type;
80 }
81 
82 
85 {
86  return m_type;
87 }
88 
89 
90 // ----------------------------------------------------------------------------------------------------------
91 
92 
94 {
96 }
97 
98 
100 {
101 
102 }
103 
104 void
106 {
107  m_dci = dci;
108 
109 }
110 
111 
114 {
115  return m_dci;
116 }
117 
118 
119 // ----------------------------------------------------------------------------------------------------------
120 
121 
123 {
125 }
126 
127 
129 {
130 
131 }
132 
133 void
135 {
136  m_dci = dci;
137 
138 }
139 
140 
143 {
144  return m_dci;
145 }
146 
147 
148 // ----------------------------------------------------------------------------------------------------------
149 
150 
152 {
154 }
155 
156 
158 {
159 
160 }
161 
162 void
164 {
165  m_dlCqi = dlcqi;
166 
167 }
168 
169 
172 {
173  return m_dlCqi;
174 }
175 
176 
177 
178 // ----------------------------------------------------------------------------------------------------------
179 
180 
182 {
184 }
185 
186 
188 {
189 
190 }
191 
192 void
194 {
195  m_bsr = bsr;
196 
197 }
198 
199 
202 {
203  return m_bsr;
204 }
205 
206 
207 } // namespace ns3
208