A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-control-messages.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
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: Giuseppe Piro <g.piro@poliba.it>
18 * Marco Miozzo <marco.miozzo@cttc.es>
19 */
20
22
23#include "ns3/address-utils.h"
24#include "ns3/log.h"
25#include "ns3/uinteger.h"
26
27namespace ns3
28{
29
30NS_LOG_COMPONENT_DEFINE("LteControlMessage");
31
33{
34}
35
37{
38}
39
40void
42{
43 m_type = type;
44}
45
48{
49 return m_type;
50}
51
52// ----------------------------------------------------------------------------------------------------------
53
55{
57}
58
60{
61}
62
63void
65{
66 m_dci = dci;
67}
68
71{
72 return m_dci;
73}
74
75// ----------------------------------------------------------------------------------------------------------
76
78{
80}
81
83{
84}
85
86void
88{
89 m_dci = dci;
90}
91
94{
95 return m_dci;
96}
97
98// ----------------------------------------------------------------------------------------------------------
99
101{
103}
104
106{
107}
108
109void
111{
112 m_dlCqi = dlcqi;
113}
114
117{
118 return m_dlCqi;
119}
120
121// ----------------------------------------------------------------------------------------------------------
122
124{
126}
127
129{
130}
131
132void
134{
135 m_bsr = bsr;
136}
137
140{
141 return m_bsr;
142}
143
144// ----------------------------------------------------------------------------------------------------------
145
147{
149}
150
151void
153{
154 m_rapId = rapId;
155}
156
159{
160 return m_rapId;
161}
162
163// ----------------------------------------------------------------------------------------------------------
164
166{
168}
169
170void
172{
173 m_raRnti = raRnti;
174}
175
176uint16_t
178{
179 return m_raRnti;
180}
181
182void
184{
185 m_rarList.push_back(rar);
186}
187
188std::list<RarLteControlMessage::Rar>::const_iterator
190{
191 return m_rarList.begin();
192}
193
194std::list<RarLteControlMessage::Rar>::const_iterator
196{
197 return m_rarList.end();
198}
199
200// ----------------------------------------------------------------------------------------------------------
201
203{
205}
206
207void
209{
210 m_mib = mib;
211}
212
215{
216 return m_mib;
217}
218
219// ----------------------------------------------------------------------------------------------------------
220
222{
224}
225
226void
228{
229 m_sib1 = sib1;
230}
231
234{
235 return m_sib1;
236}
237
238// ---------------------------------------------------------------------------
239
241{
243}
244
246{
247}
248
249void
251{
253}
254
257{
258 return m_dlInfoListElement;
259}
260
261} // namespace ns3
MacCeListElement_s m_bsr
BSR.
MacCeListElement_s GetBsr()
Get BSR information.
void SetBsr(MacCeListElement_s bsr)
add a BSR feedback record into the message.
CqiListElement_s m_dlCqi
DL CQI.
void SetDlCqi(CqiListElement_s dlcqi)
add a DL-CQI feedback record into the message.
CqiListElement_s GetDlCqi()
Get DL cqi information.
const DlDciListElement_s & GetDci()
Get dic information.
void SetDci(DlDciListElement_s dci)
add a DCI into the message
DlDciListElement_s m_dci
DCI.
void SetDlHarqFeedback(DlInfoListElement_s m)
add a DL HARQ feedback record into the message.
DlInfoListElement_s GetDlHarqFeedback()
Get DL HARQ information.
DlInfoListElement_s m_dlInfoListElement
DL info list element.
MessageType GetMessageType()
Get the type of the message.
MessageType m_type
message type
MessageType
The type of the message NOTE: The messages sent by UE are filtered by the LteEnbPhy::ReceiveLteContro...
void SetMessageType(MessageType type)
Set the type of the message.
MibLteControlMessage()
Create a new instance of MIB control message.
void SetMib(LteRrcSap::MasterInformationBlock mib)
Replace the MIB content of this control message.
LteRrcSap::MasterInformationBlock m_mib
MIB.
LteRrcSap::MasterInformationBlock GetMib() const
Retrieve the MIB content from this control message.
void SetRapId(uint32_t rapid)
Set the Random Access Preamble Identifier (RAPID), see 3GPP TS 36.321 6.2.2.
std::list< Rar >::const_iterator RarListEnd() const
std::list< Rar >::const_iterator RarListBegin() const
std::list< Rar > m_rarList
RAR list.
void SetRaRnti(uint16_t raRnti)
void AddRar(Rar rar)
add a RAR to the MAC PDU, see 3GPP TS 36.321 6.2.3
void SetSib1(LteRrcSap::SystemInformationBlockType1 sib1)
Replace the SIB1 content of this control message.
LteRrcSap::SystemInformationBlockType1 m_sib1
SIB1.
LteRrcSap::SystemInformationBlockType1 GetSib1() const
Retrieve the SIB1 content from this control message.
Sib1LteControlMessage()
Create a new instance of SIB1 control message.
void SetDci(UlDciListElement_s dci)
add a DCI into the message
const UlDciListElement_s & GetDci()
Get dic information.
UlDciListElement_s m_dci
DCI.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
Every class exported by the ns3 library is enclosed in the ns3 namespace.
See section 4.3.24 cqiListElement.
See section 4.3.1 dlDciListElement.
Definition: ff-mac-common.h:93
See section 4.3.23 dlInfoListElement.
MasterInformationBlock structure.
Definition: lte-rrc-sap.h:622
SystemInformationBlockType1 structure.
Definition: lte-rrc-sap.h:629
See section 4.3.14 macCEListElement.
a MAC RAR and the corresponding RAPID subheader
See section 4.3.2 ulDciListElement.