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-info.cc
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: Nicola Baldo <nbaldo@cttc.es>
18
*/
19
20
#include "
lte-radio-bearer-info.h
"
21
22
#include "
lte-pdcp.h
"
23
#include "
lte-rlc.h
"
24
#include "
lte-ue-rrc.h
"
25
26
#include <ns3/log.h>
27
28
namespace
ns3
29
{
30
31
NS_OBJECT_ENSURE_REGISTERED
(LteRadioBearerInfo);
32
33
LteRadioBearerInfo::LteRadioBearerInfo
()
34
{
35
}
36
37
LteRadioBearerInfo::~LteRadioBearerInfo
()
38
{
39
}
40
41
TypeId
42
LteRadioBearerInfo::GetTypeId
()
43
{
44
static
TypeId
tid =
45
TypeId
(
"ns3::LteRadioBearerInfo"
).
SetParent
<
Object
>().AddConstructor<LteRadioBearerInfo>();
46
return
tid;
47
}
48
49
TypeId
50
LteDataRadioBearerInfo::GetTypeId
()
51
{
52
static
TypeId
tid =
53
TypeId
(
"ns3::LteDataRadioBearerInfo"
)
54
.
SetParent
<
LteRadioBearerInfo
>()
55
.AddConstructor<LteDataRadioBearerInfo>()
56
.AddAttribute(
"DrbIdentity"
,
57
"The id of this Data Radio Bearer"
,
58
TypeId::ATTR_GET
,
// allow only getting it.
59
UintegerValue
(0),
// unused (attribute is read-only
60
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_drbIdentity
),
61
MakeUintegerChecker<uint8_t>())
62
.AddAttribute(
"EpsBearerIdentity"
,
63
"The id of the EPS bearer corresponding to this Data Radio Bearer"
,
64
TypeId::ATTR_GET
,
// allow only getting it.
65
UintegerValue
(0),
// unused (attribute is read-only
66
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_epsBearerIdentity
),
67
MakeUintegerChecker<uint8_t>())
68
.AddAttribute(
"logicalChannelIdentity"
,
69
"The id of the Logical Channel corresponding to this Data Radio Bearer"
,
70
TypeId::ATTR_GET
,
// allow only getting it.
71
UintegerValue
(0),
// unused (attribute is read-only
72
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_logicalChannelIdentity
),
73
MakeUintegerChecker<uint8_t>())
74
.AddAttribute(
"LteRlc"
,
75
"RLC instance of the radio bearer."
,
76
PointerValue
(),
77
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
78
MakePointerChecker<LteRlc>())
79
.AddAttribute(
"LtePdcp"
,
80
"PDCP instance of the radio bearer."
,
81
PointerValue
(),
82
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
83
MakePointerChecker<LtePdcp>());
84
return
tid;
85
}
86
87
TypeId
88
LteSignalingRadioBearerInfo::GetTypeId
()
89
{
90
static
TypeId
tid =
91
TypeId
(
"ns3::LteSignalingRadioBearerInfo"
)
92
.
SetParent
<
LteRadioBearerInfo
>()
93
.AddConstructor<LteSignalingRadioBearerInfo>()
94
.AddAttribute(
"SrbIdentity"
,
95
"The id of this Signaling Radio Bearer"
,
96
TypeId::ATTR_GET
,
// allow only getting it.
97
UintegerValue
(0),
// unused (attribute is read-only
98
MakeUintegerAccessor
(&
LteSignalingRadioBearerInfo::m_srbIdentity
),
99
MakeUintegerChecker<uint8_t>())
100
.AddAttribute(
"LteRlc"
,
101
"RLC instance of the radio bearer."
,
102
PointerValue
(),
103
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
104
MakePointerChecker<LteRlc>())
105
.AddAttribute(
"LtePdcp"
,
106
"PDCP instance of the radio bearer."
,
107
PointerValue
(),
108
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
109
MakePointerChecker<LtePdcp>());
110
return
tid;
111
}
112
113
}
// namespace ns3
ns3::LteDataRadioBearerInfo::m_drbIdentity
uint8_t m_drbIdentity
DRB identity.
Definition:
lte-radio-bearer-info.h:86
ns3::LteDataRadioBearerInfo::m_logicalChannelIdentity
uint8_t m_logicalChannelIdentity
logical channel identity
Definition:
lte-radio-bearer-info.h:88
ns3::LteDataRadioBearerInfo::m_epsBearerIdentity
uint8_t m_epsBearerIdentity
EPS bearer identity.
Definition:
lte-radio-bearer-info.h:85
ns3::LteDataRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:50
ns3::LteRadioBearerInfo
store information on active radio bearer instance
Definition:
lte-radio-bearer-info.h:40
ns3::LteRadioBearerInfo::m_rlc
Ptr< LteRlc > m_rlc
RLC.
Definition:
lte-radio-bearer-info.h:50
ns3::LteRadioBearerInfo::m_pdcp
Ptr< LtePdcp > m_pdcp
PDCP.
Definition:
lte-radio-bearer-info.h:51
ns3::LteRadioBearerInfo::~LteRadioBearerInfo
~LteRadioBearerInfo() override
Definition:
lte-radio-bearer-info.cc:37
ns3::LteRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:42
ns3::LteRadioBearerInfo::LteRadioBearerInfo
LteRadioBearerInfo()
Definition:
lte-radio-bearer-info.cc:33
ns3::LteSignalingRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:88
ns3::LteSignalingRadioBearerInfo::m_srbIdentity
uint8_t m_srbIdentity
SRB identity.
Definition:
lte-radio-bearer-info.h:67
ns3::Object
A base class which provides memory management and object aggregation.
Definition:
object.h:89
ns3::PointerValue
Hold objects of type Ptr<T>.
Definition:
pointer.h:37
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3::TypeId::ATTR_GET
@ ATTR_GET
The attribute can be read.
Definition:
type-id.h:65
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:935
ns3::UintegerValue
Hold an unsigned integer type.
Definition:
uinteger.h:45
ns3::MakePointerAccessor
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition:
pointer.h:231
ns3::MakeUintegerAccessor
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Create an AttributeAccessor for a class data member, or a lone class get functor or set method.
Definition:
uinteger.h:46
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition:
object-base.h:46
lte-pdcp.h
lte-radio-bearer-info.h
lte-rlc.h
lte-ue-rrc.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
lte-radio-bearer-info.cc
Generated on Fri Mar 31 2023 13:30:45 for ns-3 by
1.9.1