A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
35
LteRadioBearerInfo::LteRadioBearerInfo
(
void
)
36
{
37
}
38
39
LteRadioBearerInfo::~LteRadioBearerInfo
(
void
)
40
{
41
}
42
43
TypeId
44
LteRadioBearerInfo::GetTypeId
(
void
)
45
{
46
static
TypeId
47
tid =
48
TypeId
(
"ns3::LteRadioBearerInfo"
)
49
.
SetParent
<
Object
> ()
50
.AddConstructor<LteRadioBearerInfo> ()
51
;
52
return
tid;
53
}
54
55
56
TypeId
57
LteDataRadioBearerInfo::GetTypeId
(
void
)
58
{
59
static
TypeId
60
tid =
61
TypeId
(
"ns3::LteDataRadioBearerInfo"
)
62
.
SetParent
<
LteRadioBearerInfo
> ()
63
.AddConstructor<LteDataRadioBearerInfo> ()
64
.AddAttribute (
"DrbIdentity"
,
"The id of this Data Radio Bearer"
,
65
TypeId::ATTR_GET
,
// allow only getting it.
66
UintegerValue
(0),
// unused (attribute is read-only
67
MakeUintegerAccessor (&
LteDataRadioBearerInfo::m_drbIdentity
),
68
MakeUintegerChecker<uint8_t> ())
69
.AddAttribute (
"EpsBearerIdentity"
,
"The id of the EPS bearer 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_epsBearerIdentity
),
73
MakeUintegerChecker<uint8_t> ())
74
.AddAttribute (
"logicalChannelIdentity"
,
"The id of the Logical Channel corresponding to this Data Radio Bearer"
,
75
TypeId::ATTR_GET
,
// allow only getting it.
76
UintegerValue
(0),
// unused (attribute is read-only
77
MakeUintegerAccessor (&
LteDataRadioBearerInfo::m_logicalChannelIdentity
),
78
MakeUintegerChecker<uint8_t> ())
79
.AddAttribute (
"LteRlc"
,
"RLC instance of the radio bearer."
,
80
PointerValue
(),
81
MakePointerAccessor (&
LteRadioBearerInfo::m_rlc
),
82
MakePointerChecker<LteRlc> ())
83
.AddAttribute (
"LtePdcp"
,
"PDCP instance of the radio bearer."
,
84
PointerValue
(),
85
MakePointerAccessor (&
LteRadioBearerInfo::m_pdcp
),
86
MakePointerChecker<LtePdcp> ())
87
;
88
return
tid;
89
}
90
91
92
TypeId
93
LteSignalingRadioBearerInfo::GetTypeId
(
void
)
94
{
95
static
TypeId
96
tid =
97
TypeId
(
"ns3::LteSignalingRadioBearerInfo"
)
98
.
SetParent
<
LteRadioBearerInfo
> ()
99
.AddConstructor<LteSignalingRadioBearerInfo> ()
100
.AddAttribute (
"SrbIdentity"
,
"The id of this Signaling Radio Bearer"
,
101
TypeId::ATTR_GET
,
// allow only getting it.
102
UintegerValue
(0),
// unused (attribute is read-only
103
MakeUintegerAccessor (&
LteSignalingRadioBearerInfo::m_srbIdentity
),
104
MakeUintegerChecker<uint8_t> ())
105
.AddAttribute (
"LteRlc"
,
"RLC instance of the radio bearer."
,
106
PointerValue
(),
107
MakePointerAccessor (&
LteRadioBearerInfo::m_rlc
),
108
MakePointerChecker<LteRlc> ())
109
.AddAttribute (
"LtePdcp"
,
"PDCP instance of the radio bearer."
,
110
PointerValue
(),
111
MakePointerAccessor (&
LteRadioBearerInfo::m_pdcp
),
112
MakePointerChecker<LtePdcp> ())
113
;
114
return
tid;
115
}
116
117
118
119
}
// namespace ns3
lte-rlc.h
ns3::LteRadioBearerInfo::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-radio-bearer-info.cc:44
ns3::LteRadioBearerInfo::~LteRadioBearerInfo
virtual ~LteRadioBearerInfo(void)
Definition:
lte-radio-bearer-info.cc:39
ns3::LteRadioBearerInfo::m_rlc
Ptr< LteRlc > m_rlc
Definition:
lte-radio-bearer-info.h:47
ns3::NS_OBJECT_ENSURE_REGISTERED
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
ns3::LteRadioBearerInfo::LteRadioBearerInfo
LteRadioBearerInfo(void)
Definition:
lte-radio-bearer-info.cc:35
ns3::TypeId::ATTR_GET
The attribute can be read.
Definition:
type-id.h:56
ns3::LteRadioBearerInfo::m_pdcp
Ptr< LtePdcp > m_pdcp
Definition:
lte-radio-bearer-info.h:48
ns3::LteDataRadioBearerInfo::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-radio-bearer-info.cc:57
lte-radio-bearer-info.h
ns3::LteDataRadioBearerInfo::m_logicalChannelIdentity
uint8_t m_logicalChannelIdentity
Definition:
lte-radio-bearer-info.h:81
ns3::UintegerValue
Hold an unsigned integer type.
Definition:
uinteger.h:46
lte-ue-rrc.h
ns3::LteSignalingRadioBearerInfo::m_srbIdentity
uint8_t m_srbIdentity
Definition:
lte-radio-bearer-info.h:62
ns3::PointerValue
hold objects of type Ptr
Definition:
pointer.h:33
lte-pdcp.h
ns3::LteDataRadioBearerInfo::m_drbIdentity
uint8_t m_drbIdentity
Definition:
lte-radio-bearer-info.h:79
ns3::LteRadioBearerInfo
store information on active radio bearer instance
Definition:
lte-radio-bearer-info.h:39
ns3::LteSignalingRadioBearerInfo::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-radio-bearer-info.cc:93
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Definition:
type-id.cc:611
ns3::LteDataRadioBearerInfo::m_epsBearerIdentity
uint8_t m_epsBearerIdentity
Definition:
lte-radio-bearer-info.h:78
src
lte
model
lte-radio-bearer-info.cc
Generated on Sat Apr 19 2014 14:07:00 for ns-3 by
1.8.6