A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-radio-bearer-tag.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Author: Marco Miozzo <marco.miozzo@cttc.es>
18
*/
19
#ifndef LTE_RADIO_BEARER_TAG_H
20
#define LTE_RADIO_BEARER_TAG_H
21
22
#include "ns3/tag.h"
23
24
namespace
ns3
25
{
26
27
class
Tag;
28
33
class
LteRadioBearerTag
:
public
Tag
34
{
35
public
:
40
static
TypeId
GetTypeId
();
41
TypeId
GetInstanceTypeId
()
const override
;
42
46
LteRadioBearerTag
();
47
53
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId);
54
61
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId, uint8_t layer);
62
68
void
SetRnti
(uint16_t rnti);
69
75
void
SetLcid
(uint8_t lcid);
76
82
void
SetLayer
(uint8_t layer);
83
84
void
Serialize
(
TagBuffer
i)
const override
;
85
void
Deserialize
(
TagBuffer
i)
override
;
86
uint32_t
GetSerializedSize
()
const override
;
87
void
Print
(std::ostream& os)
const override
;
88
94
uint16_t
GetRnti
()
const
;
100
uint8_t
GetLcid
()
const
;
106
uint8_t
GetLayer
()
const
;
107
108
private
:
109
uint16_t
m_rnti
;
110
uint8_t
m_lcid
;
111
uint8_t
m_layer
;
112
};
113
114
}
// namespace ns3
115
116
#endif
/* LTE_RADIO_BEARER_TAG_H */
ns3::LteRadioBearerTag
Tag used to define the RNTI and LC id for each MAC packet transmitted.
Definition:
lte-radio-bearer-tag.h:34
ns3::LteRadioBearerTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
lte-radio-bearer-tag.cc:97
ns3::LteRadioBearerTag::Serialize
void Serialize(TagBuffer i) const override
Definition:
lte-radio-bearer-tag.cc:103
ns3::LteRadioBearerTag::SetLayer
void SetLayer(uint8_t layer)
Set the layer id to the given value.
Definition:
lte-radio-bearer-tag.cc:91
ns3::LteRadioBearerTag::GetRnti
uint16_t GetRnti() const
Get RNTI function.
Definition:
lte-radio-bearer-tag.cc:119
ns3::LteRadioBearerTag::Print
void Print(std::ostream &os) const override
Definition:
lte-radio-bearer-tag.cc:137
ns3::LteRadioBearerTag::GetLcid
uint8_t GetLcid() const
Get LCID function.
Definition:
lte-radio-bearer-tag.cc:125
ns3::LteRadioBearerTag::m_rnti
uint16_t m_rnti
RNTI.
Definition:
lte-radio-bearer-tag.h:109
ns3::LteRadioBearerTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-tag.cc:31
ns3::LteRadioBearerTag::m_layer
uint8_t m_layer
layer
Definition:
lte-radio-bearer-tag.h:111
ns3::LteRadioBearerTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
lte-radio-bearer-tag.cc:53
ns3::LteRadioBearerTag::LteRadioBearerTag
LteRadioBearerTag()
Create an empty LteRadioBearerTag.
Definition:
lte-radio-bearer-tag.cc:58
ns3::LteRadioBearerTag::SetRnti
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
Definition:
lte-radio-bearer-tag.cc:79
ns3::LteRadioBearerTag::SetLcid
void SetLcid(uint8_t lcid)
Set the LC id to the given value.
Definition:
lte-radio-bearer-tag.cc:85
ns3::LteRadioBearerTag::m_lcid
uint8_t m_lcid
LCID.
Definition:
lte-radio-bearer-tag.h:110
ns3::LteRadioBearerTag::GetLayer
uint8_t GetLayer() const
Get layer function.
Definition:
lte-radio-bearer-tag.cc:131
ns3::LteRadioBearerTag::Deserialize
void Deserialize(TagBuffer i) override
Definition:
lte-radio-bearer-tag.cc:111
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:39
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
lte-radio-bearer-tag.h
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1