/usr/include/ns3.17/ns3/lte-control-messages.h is in libns3-dev 3.17+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Author: Giuseppe Piro <g.piro@poliba.it>
* Author: Marco Miozzo <marco.miozzo@cttc.es>
*/
#ifndef LTE_CONTROL_MESSAGES_H
#define LTE_CONTROL_MESSAGES_H
#include "ns3/ptr.h"
#include "ns3/simple-ref-count.h"
#include <list>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
*
* The LteControlMessage provides a basic implementations for
* control messages (such as PDCCH allocation map, CQI feedbacks)
* that are exchanged among eNodeB and UEs.
*/
class LteControlMessage : public SimpleRefCount<LteControlMessage>
{
public:
/**
* The type of the message
*/
enum MessageType
{
DL_DCI, UL_DCI, // Downlink/Uplink Data Control Indicator
DL_CQI, UL_CQI, // Downlink/Uplink Channel Quality Indicator
BSR, // Buffer Status Report
DL_HARQ, // UL HARQ feedback
RACH_PREAMBLE, // Random Access Preamble
RAR, // Random Access Response
MIB, // Master Information Block
};
LteControlMessage (void);
virtual ~LteControlMessage (void);
/**
* \brief Set the type of the message
* \param type the type of the message
*/
void SetMessageType (MessageType type);
/**
* \brief Get the type of the message
* \return the type of the message
*/
MessageType GetMessageType (void);
private:
MessageType m_type;
};
} // namespace ns3
#endif /* LTE_CONTROL_MESSAGES_H */
// -----------------------------------------------------------------------
#ifndef DL_DCI_LTE_CONTROL_MESSAGES_H
#define DL_DCI_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
/**
* \ingroup lte
* The Downlink Data Control Indicator messages defines the RB allocation for the
* users in the downlink
*/
class DlDciLteControlMessage : public LteControlMessage
{
public:
DlDciLteControlMessage (void);
virtual ~DlDciLteControlMessage (void);
/**
* \brief add a DCI into the message
* \param dci the dci
*/
void SetDci (DlDciListElement_s dci);
/**
* \brief Get dic informations
* \return dci messages
*/
DlDciListElement_s GetDci (void);
private:
DlDciListElement_s m_dci;
};
} // namespace ns3
#endif /* DL_DCI_LTE_CONTROL_MESSAGES_H */
// ---------------------------------------------------------------------------
#ifndef UL_DCI_LTE_CONTROL_MESSAGES_H
#define UL_DCI_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
/**
* \ingroup lte
* The Uplink Data Control Indicator messages defines the RB allocation for the
* users in the uplink
*/
class UlDciLteControlMessage : public LteControlMessage
{
public:
UlDciLteControlMessage (void);
virtual ~UlDciLteControlMessage (void);
/**
* \brief add a DCI into the message
* \param dci the dci
*/
void SetDci (UlDciListElement_s dci);
/**
* \brief Get dic informations
* \return dci messages
*/
UlDciListElement_s GetDci (void);
private:
UlDciListElement_s m_dci;
};
} // namespace ns3
#endif /* UL_DCI_LTE_CONTROL_MESSAGES_H */
// ---------------------------------------------------------------------------
#ifndef DLCQI_LTE_CONTROL_MESSAGES_H
#define DLCQI_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
* The downlink CqiLteControlMessage defines an ideal list of
* feedback about the channel quality sent by the UE to the eNodeB.
*/
class DlCqiLteControlMessage : public LteControlMessage
{
public:
DlCqiLteControlMessage (void);
virtual ~DlCqiLteControlMessage (void);
/**
* \brief add a DL-CQI feedback record into the message.
* \param dlcqi the DL cqi feedback
*/
void SetDlCqi (CqiListElement_s dlcqi);
/**
* \brief Get DL cqi informations
* \return dlcqi messages
*/
CqiListElement_s GetDlCqi (void);
private:
CqiListElement_s m_dlCqi;
};
} // namespace ns3
#endif /* DLCQI_LTE_CONTROL_MESSAGES_H */
// ---------------------------------------------------------------------------
#ifndef BSR_LTE_CONTROL_MESSAGES_H
#define BSR_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
* The uplink BsrLteControlMessage defines the specific
* extension of the CE element for reporting the buffer status report
*/
class BsrLteControlMessage : public LteControlMessage
{
public:
BsrLteControlMessage (void);
virtual ~BsrLteControlMessage (void);
/**
* \brief add a BSR feedback record into the message.
* \param bsr the BSR feedback
*/
void SetBsr (MacCeListElement_s ulcqi);
/**
* \brief Get BSR informations
* \return BSR message
*/
MacCeListElement_s GetBsr (void);
private:
MacCeListElement_s m_bsr;
};
} // namespace ns3
#endif /* BSR_LTE_CONTROL_MESSAGES_H */
// ---------------------------------------------------------------------------
#ifndef DL_HARQ_LTE_CONTROL_MESSAGES_H
#define DL_HARQ_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
/**
* \ingroup lte
* The downlink DlHarqFeedbackLteControlMessage defines the specific
* messages for transmitting the DL HARQ feedback through PUCCH
*/
class DlHarqFeedbackLteControlMessage : public LteControlMessage
{
public:
DlHarqFeedbackLteControlMessage (void);
virtual ~DlHarqFeedbackLteControlMessage (void);
/**
* \brief add a DL HARQ feedback record into the message.
* \param DlInfoListElement_s the dl HARQ feedback
*/
void SetDlHarqFeedback (DlInfoListElement_s m);
/**
* \brief Get DL HARQ informations
* \return DL HARQ message
*/
DlInfoListElement_s GetDlHarqFeedback (void);
private:
DlInfoListElement_s m_dlInfoListElement;
};
} // namespace ns3
#endif /* DL_HARQ_LTE_CONTROL_MESSAGES_H */
#ifndef RACH_PREAMBLE_LTE_CONTROL_MESSAGES_H
#define RACH_PREAMBLE_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
*
* abstract model for the Random Access Preamble
*/
class RachPreambleLteControlMessage : public LteControlMessage
{
public:
RachPreambleLteControlMessage (void);
/**
* Set the Random Access Preamble Identifier (RAPID), see 3GPP TS 36.321 6.2.2
*
* \param rapid
*/
void SetRapId (uint32_t rapid);
/**
*
* \return the RAPID
*/
uint32_t GetRapId () const;
private:
uint32_t m_rapId;
};
} // namespace ns3
#endif // RACH_PREAMBLE_LTE_CONTROL_MESSAGES_H
#ifndef RAR_LTE_CONTROL_MESSAGES_H
#define RAR_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
*
* abstract model for the MAC Random Access Response message
*/
class RarLteControlMessage : public LteControlMessage
{
public:
RarLteControlMessage (void);
/**
*
* \param raRnti the RA-RNTI, see 3GPP TS 36.321 5.1.4
*/
void SetRaRnti (uint16_t raRnti);
/**
*
* \return the RA-RNTI, see 3GPP TS 36.321 5.1.4
*/
uint16_t GetRaRnti () const;
/**
* a MAC RAR and the corresponding RAPID subheader
*
*/
struct Rar
{
uint8_t rapId;
BuildRarListElement_s rarPayload;
};
/**
* add a RAR to the MAC PDU, see 3GPP TS 36.321 6.2.3
*
* \param rar the rar
*/
void AddRar (Rar rar);
/**
*
* \return a const iterator to the beginning of the RAR list
*/
std::list<Rar>::const_iterator RarListBegin () const;
/**
*
* \return a const iterator to the end of the RAR list
*/
std::list<Rar>::const_iterator RarListEnd () const;
private:
std::list<Rar> m_rarList;
uint16_t m_raRnti;
};
} // namespace ns3
#endif // RAR_LTE_CONTROL_MESSAGES_H
#ifndef MIB_LTE_CONTROL_MESSAGES_H
#define MIB_LTE_CONTROL_MESSAGES_H
#include <ns3/object.h>
#include <ns3/ff-mac-common.h>
#include <ns3/lte-rrc-sap.h>
namespace ns3 {
class LteNetDevice;
/**
* \ingroup lte
*
* abstract model for broadcasting the Master Information Block
*/
class MibLteControlMessage : public LteControlMessage
{
public:
MibLteControlMessage (void);
void SetMib (LteRrcSap::MasterInformationBlock mib);
LteRrcSap::MasterInformationBlock GetMib () const;
private:
LteRrcSap::MasterInformationBlock m_mib;
};
} // namespace ns3
#endif // MIB_LTE_CONTROL_MESSAGES_H
|