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
25
#include <ns3/log.h>
26
27
namespace
ns3
28
{
29
30
NS_OBJECT_ENSURE_REGISTERED
(LteRadioBearerInfo);
31
32
LteRadioBearerInfo::LteRadioBearerInfo
()
33
{
34
}
35
36
LteRadioBearerInfo::~LteRadioBearerInfo
()
37
{
38
}
39
40
TypeId
41
LteRadioBearerInfo::GetTypeId
()
42
{
43
static
TypeId
tid =
44
TypeId
(
"ns3::LteRadioBearerInfo"
).
SetParent
<
Object
>().AddConstructor<LteRadioBearerInfo>();
45
return
tid;
46
}
47
48
TypeId
49
LteDataRadioBearerInfo::GetTypeId
()
50
{
51
static
TypeId
tid =
52
TypeId
(
"ns3::LteDataRadioBearerInfo"
)
53
.
SetParent
<
LteRadioBearerInfo
>()
54
.AddConstructor<LteDataRadioBearerInfo>()
55
.AddAttribute(
"DrbIdentity"
,
56
"The id of this Data Radio Bearer"
,
57
TypeId::ATTR_GET
,
// allow only getting it.
58
UintegerValue
(0),
// unused (attribute is read-only
59
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_drbIdentity
),
60
MakeUintegerChecker<uint8_t>())
61
.AddAttribute(
"EpsBearerIdentity"
,
62
"The id of the EPS bearer corresponding to this Data Radio Bearer"
,
63
TypeId::ATTR_GET
,
// allow only getting it.
64
UintegerValue
(0),
// unused (attribute is read-only
65
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_epsBearerIdentity
),
66
MakeUintegerChecker<uint8_t>())
67
.AddAttribute(
"logicalChannelIdentity"
,
68
"The id of the Logical Channel corresponding to this Data Radio Bearer"
,
69
TypeId::ATTR_GET
,
// allow only getting it.
70
UintegerValue
(0),
// unused (attribute is read-only
71
MakeUintegerAccessor
(&
LteDataRadioBearerInfo::m_logicalChannelIdentity
),
72
MakeUintegerChecker<uint8_t>())
73
.AddAttribute(
"LteRlc"
,
74
"RLC instance of the radio bearer."
,
75
PointerValue
(),
76
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
77
MakePointerChecker<LteRlc>())
78
.AddAttribute(
"LtePdcp"
,
79
"PDCP instance of the radio bearer."
,
80
PointerValue
(),
81
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
82
MakePointerChecker<LtePdcp>());
83
return
tid;
84
}
85
86
TypeId
87
LteSignalingRadioBearerInfo::GetTypeId
()
88
{
89
static
TypeId
tid =
90
TypeId
(
"ns3::LteSignalingRadioBearerInfo"
)
91
.
SetParent
<
LteRadioBearerInfo
>()
92
.AddConstructor<LteSignalingRadioBearerInfo>()
93
.AddAttribute(
"SrbIdentity"
,
94
"The id of this Signaling Radio Bearer"
,
95
TypeId::ATTR_GET
,
// allow only getting it.
96
UintegerValue
(0),
// unused (attribute is read-only
97
MakeUintegerAccessor
(&
LteSignalingRadioBearerInfo::m_srbIdentity
),
98
MakeUintegerChecker<uint8_t>())
99
.AddAttribute(
"LteRlc"
,
100
"RLC instance of the radio bearer."
,
101
PointerValue
(),
102
MakePointerAccessor
(&
LteRadioBearerInfo::m_rlc
),
103
MakePointerChecker<LteRlc>())
104
.AddAttribute(
"LtePdcp"
,
105
"PDCP instance of the radio bearer."
,
106
PointerValue
(),
107
MakePointerAccessor
(&
LteRadioBearerInfo::m_pdcp
),
108
MakePointerChecker<LtePdcp>());
109
return
tid;
110
}
111
112
}
// namespace ns3
ns3::LteDataRadioBearerInfo::m_drbIdentity
uint8_t m_drbIdentity
DRB identity.
Definition:
lte-radio-bearer-info.h:87
ns3::LteDataRadioBearerInfo::m_logicalChannelIdentity
uint8_t m_logicalChannelIdentity
logical channel identity
Definition:
lte-radio-bearer-info.h:89
ns3::LteDataRadioBearerInfo::m_epsBearerIdentity
uint8_t m_epsBearerIdentity
EPS bearer identity.
Definition:
lte-radio-bearer-info.h:86
ns3::LteDataRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:49
ns3::LteRadioBearerInfo
store information on active radio bearer instance
Definition:
lte-radio-bearer-info.h:41
ns3::LteRadioBearerInfo::m_rlc
Ptr< LteRlc > m_rlc
RLC.
Definition:
lte-radio-bearer-info.h:51
ns3::LteRadioBearerInfo::m_pdcp
Ptr< LtePdcp > m_pdcp
PDCP.
Definition:
lte-radio-bearer-info.h:52
ns3::LteRadioBearerInfo::~LteRadioBearerInfo
~LteRadioBearerInfo() override
Definition:
lte-radio-bearer-info.cc:36
ns3::LteRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:41
ns3::LteRadioBearerInfo::LteRadioBearerInfo
LteRadioBearerInfo()
Definition:
lte-radio-bearer-info.cc:32
ns3::LteSignalingRadioBearerInfo::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-radio-bearer-info.cc:87
ns3::LteSignalingRadioBearerInfo::m_srbIdentity
uint8_t m_srbIdentity
SRB identity.
Definition:
lte-radio-bearer-info.h:68
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:59
ns3::TypeId::ATTR_GET
@ ATTR_GET
The attribute can be read.
Definition:
type-id.h:64
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition:
type-id.cc:931
ns3::UintegerValue
Hold an unsigned integer type.
Definition:
uinteger.h:45
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
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::MakePointerAccessor
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Definition:
pointer.h:227
ns3::MakeUintegerAccessor
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Definition:
uinteger.h:46
src
lte
model
lte-radio-bearer-info.cc
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1