A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
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
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Nicola Baldo <nbaldo@cttc.es>
7
*/
8
9
#include "
lte-radio-bearer-info.h
"
10
11
#include "
lte-pdcp.h
"
12
#include "
lte-rlc.h
"
13
14
#include <ns3/log.h>
15
16
namespace
ns3
17
{
18
19
NS_OBJECT_ENSURE_REGISTERED
(LteRadioBearerInfo);
20
21
LteRadioBearerInfo::LteRadioBearerInfo
()
22
{
23
}
24
25
LteRadioBearerInfo::~LteRadioBearerInfo
()
26
{
27
}
28
29
TypeId
30
LteRadioBearerInfo::GetTypeId
()
31
{
32
static
TypeId
tid =
33
TypeId
(
"ns3::LteRadioBearerInfo"
).
SetParent
<
Object
>().AddConstructor<LteRadioBearerInfo>();
34
return
tid;
35
}
36
37
TypeId
38
LteDataRadioBearerInfo::GetTypeId
()
39
{
40
static
TypeId
tid =
41
TypeId
(
"ns3::LteDataRadioBearerInfo"
)
42
.
SetParent
<
LteRadioBearerInfo
>()
43
.AddConstructor<LteDataRadioBearerInfo>()
44
.AddAttribute(
"DrbIdentity"
,
45
"The id of this Data Radio Bearer"
,
46
TypeId::ATTR_GET
,
// allow only getting it.
47
UintegerValue
(0),
// unused (attribute is read-only
48
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_drbIdentity
),
49
MakeUintegerChecker<uint8_t>
())
50
.AddAttribute(
"EpsBearerIdentity"
,
51
"The id of the EPS bearer corresponding to this Data Radio Bearer"
,
52
TypeId::ATTR_GET
,
// allow only getting it.
53
UintegerValue
(0),
// unused (attribute is read-only
54
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_epsBearerIdentity
),
55
MakeUintegerChecker<uint8_t>
())
56
.AddAttribute(
"logicalChannelIdentity"
,
57
"The id of the Logical Channel corresponding to this Data Radio Bearer"
,
58
TypeId::ATTR_GET
,
// allow only getting it.
59
UintegerValue
(0),
// unused (attribute is read-only
60
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_logicalChannelIdentity
),
61
MakeUintegerChecker<uint8_t>
())
62
.AddAttribute(
"LteRlc"
,
63
"RLC instance of the radio bearer."
,
64
PointerValue
(),
65
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
66
MakePointerChecker<LteRlc>
())
67
.AddAttribute(
"LtePdcp"
,
68
"PDCP instance of the radio bearer."
,
69
PointerValue
(),
70
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
71
MakePointerChecker<LtePdcp>
());
72
return
tid;
73
}
74
75
TypeId
76
LteSignalingRadioBearerInfo::GetTypeId
()
77
{
78
static
TypeId
tid =
79
TypeId
(
"ns3::LteSignalingRadioBearerInfo"
)
80
.
SetParent
<
LteRadioBearerInfo
>()
81
.AddConstructor<LteSignalingRadioBearerInfo>()
82
.AddAttribute(
"SrbIdentity"
,
83
"The id of this Signaling Radio Bearer"
,
84
TypeId::ATTR_GET
,
// allow only getting it.
85
UintegerValue
(0),
// unused (attribute is read-only
86
MakeUintegerAccessor
(&
LteSignalingRadioBearerInfo::m_srbIdentity
),
87
MakeUintegerChecker<uint8_t>
())
88
.AddAttribute(
"LteRlc"
,
89
"RLC instance of the radio bearer."
,
90
PointerValue
(),
91
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
92
MakePointerChecker<LteRlc>
())
93
.AddAttribute(
"LtePdcp"
,
94
"PDCP instance of the radio bearer."
,
95
PointerValue
(),
96
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
97
MakePointerChecker<LtePdcp>
());
98
return
tid;
99
}
100
101
}
// namespace ns3
ns3::LteDataRadioBearerInfo::m_drbIdentity
uint8_t m_drbIdentity
DRB identity.
Definition
lte-radio-bearer-info.h:76
ns3::LteDataRadioBearerInfo::m_logicalChannelIdentity
uint8_t m_logicalChannelIdentity
logical channel identity
Definition
lte-radio-bearer-info.h:78
ns3::LteDataRadioBearerInfo::m_epsBearerIdentity
uint8_t m_epsBearerIdentity
EPS bearer identity.
Definition
lte-radio-bearer-info.h:75
ns3::LteDataRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-radio-bearer-info.cc:38
ns3::LteRadioBearerInfo
store information on active radio bearer instance
Definition
lte-radio-bearer-info.h:30
ns3::LteRadioBearerInfo::m_rlc
Ptr< LteRlc > m_rlc
RLC.
Definition
lte-radio-bearer-info.h:40
ns3::LteRadioBearerInfo::m_pdcp
Ptr< LtePdcp > m_pdcp
PDCP.
Definition
lte-radio-bearer-info.h:41
ns3::LteRadioBearerInfo::~LteRadioBearerInfo
~LteRadioBearerInfo() override
Definition
lte-radio-bearer-info.cc:25
ns3::LteRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-radio-bearer-info.cc:30
ns3::LteRadioBearerInfo::LteRadioBearerInfo
LteRadioBearerInfo()
Definition
lte-radio-bearer-info.cc:21
ns3::LteSignalingRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
lte-radio-bearer-info.cc:76
ns3::LteSignalingRadioBearerInfo::m_srbIdentity
uint8_t m_srbIdentity
SRB identity.
Definition
lte-radio-bearer-info.h:57
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::PointerValue
AttributeValue implementation for Pointer.
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::ATTR_GET
@ ATTR_GET
The attribute can be read.
Definition
type-id.h:53
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
ns3::UintegerValue
Hold an unsigned integer type.
Definition
uinteger.h:34
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:248
ns3::MakePointerChecker
Ptr< AttributeChecker > MakePointerChecker()
Create a PointerChecker for a type.
Definition
pointer.h:269
ns3::MakeUintegerChecker
Ptr< const AttributeChecker > MakeUintegerChecker()
Definition
uinteger.h:85
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:35
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
lte-pdcp.h
lte-radio-bearer-info.h
lte-rlc.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 Mon Oct 14 2024 18:20:44 for ns-3 by
1.11.0