A Discrete-Event Network Simulator
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
21
22#include "lte-pdcp.h"
23#include "lte-rlc.h"
24#include "lte-ue-rrc.h"
25
26#include <ns3/log.h>
27
28namespace ns3
29{
30
31NS_OBJECT_ENSURE_REGISTERED(LteRadioBearerInfo);
32
34{
35}
36
38{
39}
40
43{
44 static TypeId tid =
45 TypeId("ns3::LteRadioBearerInfo").SetParent<Object>().AddConstructor<LteRadioBearerInfo>();
46 return tid;
47}
48
51{
52 static TypeId tid =
53 TypeId("ns3::LteDataRadioBearerInfo")
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
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
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
73 MakeUintegerChecker<uint8_t>())
74 .AddAttribute("LteRlc",
75 "RLC instance of the radio bearer.",
78 MakePointerChecker<LteRlc>())
79 .AddAttribute("LtePdcp",
80 "PDCP instance of the radio bearer.",
83 MakePointerChecker<LtePdcp>());
84 return tid;
85}
86
89{
90 static TypeId tid =
91 TypeId("ns3::LteSignalingRadioBearerInfo")
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
99 MakeUintegerChecker<uint8_t>())
100 .AddAttribute("LteRlc",
101 "RLC instance of the radio bearer.",
102 PointerValue(),
104 MakePointerChecker<LteRlc>())
105 .AddAttribute("LtePdcp",
106 "PDCP instance of the radio bearer.",
107 PointerValue(),
109 MakePointerChecker<LtePdcp>());
110 return tid;
111}
112
113} // namespace ns3
uint8_t m_drbIdentity
DRB identity.
uint8_t m_logicalChannelIdentity
logical channel identity
uint8_t m_epsBearerIdentity
EPS bearer identity.
static TypeId GetTypeId()
Get the type ID.
store information on active radio bearer instance
Ptr< LtePdcp > m_pdcp
PDCP.
static TypeId GetTypeId()
Get the type ID.
static TypeId GetTypeId()
Get the type ID.
A base class which provides memory management and object aggregation.
Definition: object.h:89
Hold objects of type Ptr<T>.
Definition: pointer.h:37
a unique identifier for an interface.
Definition: type-id.h:59
@ ATTR_GET
The attribute can be read.
Definition: type-id.h:64
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:935
Hold an unsigned integer type.
Definition: uinteger.h:45
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Definition: pointer.h:231
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Definition: uinteger.h:46
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:46
Every class exported by the ns3 library is enclosed in the ns3 namespace.