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