A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
lte
model
lte-radio-bearer-tag.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
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: Author: Marco Miozzo <marco.miozzo@cttc.es>
19
*/
20
#ifndef LTE_RADIO_BEARER_TAG_H
21
#define LTE_RADIO_BEARER_TAG_H
22
23
#include "ns3/tag.h"
24
25
namespace
ns3
{
26
27
class
Tag;
28
29
34
class
LteRadioBearerTag
:
public
Tag
35
{
36
public
:
41
static
TypeId
GetTypeId
(
void
);
42
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
43
47
LteRadioBearerTag
();
48
54
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId);
55
62
LteRadioBearerTag
(uint16_t rnti, uint8_t lcId, uint8_t layer);
63
69
void
SetRnti
(uint16_t rnti);
70
76
void
SetLcid
(uint8_t lcid);
77
83
void
SetLayer
(uint8_t layer);
84
85
86
virtual
void
Serialize
(
TagBuffer
i)
const
;
87
virtual
void
Deserialize
(
TagBuffer
i);
88
virtual
uint32_t
GetSerializedSize
()
const
;
89
virtual
void
Print
(std::ostream &os)
const
;
90
96
uint16_t
GetRnti
(
void
)
const
;
102
uint8_t
GetLcid
(
void
)
const
;
108
uint8_t
GetLayer
(
void
)
const
;
109
110
private
:
111
uint16_t
m_rnti
;
112
uint8_t
m_lcid
;
113
uint8_t
m_layer
;
114
115
};
116
117
118
119
}
// namespace ns3
120
121
#endif
/* LTE_RADIO_BEARER_TAG_H */
ns3::LteRadioBearerTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
lte-radio-bearer-tag.cc:50
ns3::LteRadioBearerTag::SetRnti
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
Definition:
lte-radio-bearer-tag.cc:75
ns3::LteRadioBearerTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
lte-radio-bearer-tag.cc:31
ns3::LteRadioBearerTag::m_lcid
uint8_t m_lcid
LCID.
Definition:
lte-radio-bearer-tag.h:112
ns3::LteRadioBearerTag::GetRnti
uint16_t GetRnti(void) const
Get RNTI function.
Definition:
lte-radio-bearer-tag.cc:115
ns3::LteRadioBearerTag::LteRadioBearerTag
LteRadioBearerTag()
Create an empty LteRadioBearerTag.
Definition:
lte-radio-bearer-tag.cc:55
ns3::LteRadioBearerTag::GetLayer
uint8_t GetLayer(void) const
Get layer function.
Definition:
lte-radio-bearer-tag.cc:127
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:36
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteRadioBearerTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
lte-radio-bearer-tag.cc:107
ns3::LteRadioBearerTag::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
lte-radio-bearer-tag.cc:93
ns3::LteRadioBearerTag::SetLayer
void SetLayer(uint8_t layer)
Set the layer id to the given value.
Definition:
lte-radio-bearer-tag.cc:87
ns3::LteRadioBearerTag::SetLcid
void SetLcid(uint8_t lcid)
Set the LC id to the given value.
Definition:
lte-radio-bearer-tag.cc:81
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:51
ns3::LteRadioBearerTag::GetLcid
uint8_t GetLcid(void) const
Get LCID function.
Definition:
lte-radio-bearer-tag.cc:121
ns3::LteRadioBearerTag
Tag used to define the RNTI and LC id for each MAC packet trasmitted.
Definition:
lte-radio-bearer-tag.h:34
ns3::LteRadioBearerTag::m_layer
uint8_t m_layer
layer
Definition:
lte-radio-bearer-tag.h:113
ns3::LteRadioBearerTag::Print
virtual void Print(std::ostream &os) const
Definition:
lte-radio-bearer-tag.cc:133
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::LteRadioBearerTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
lte-radio-bearer-tag.cc:99
ns3::LteRadioBearerTag::m_rnti
uint16_t m_rnti
RNTI.
Definition:
lte-radio-bearer-tag.h:111
Generated on Wed Nov 7 2018 10:02:01 for ns-3 by
1.8.14