A Discrete-Event Network Simulator
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
10
11#include "lte-pdcp.h"
12#include "lte-rlc.h"
13
14#include <ns3/log.h>
15
16namespace ns3
17{
18
19NS_OBJECT_ENSURE_REGISTERED(LteRadioBearerInfo);
20
24
28
31{
32 static TypeId tid =
33 TypeId("ns3::LteRadioBearerInfo").SetParent<Object>().AddConstructor<LteRadioBearerInfo>();
34 return tid;
35}
36
39{
40 static TypeId tid =
41 TypeId("ns3::LteDataRadioBearerInfo")
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
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
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
62 .AddAttribute("LteRlc",
63 "RLC instance of the radio bearer.",
67 .AddAttribute("LtePdcp",
68 "PDCP instance of the radio bearer.",
72 return tid;
73}
74
77{
78 static TypeId tid =
79 TypeId("ns3::LteSignalingRadioBearerInfo")
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
88 .AddAttribute("LteRlc",
89 "RLC instance of the radio bearer.",
93 .AddAttribute("LtePdcp",
94 "PDCP instance of the radio bearer.",
98 return tid;
99}
100
101} // namespace ns3
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
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:78
AttributeValue implementation for Pointer.
a unique identifier for an interface.
Definition type-id.h:48
@ ATTR_GET
The attribute can be read.
Definition type-id.h:53
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
Hold an unsigned integer type.
Definition uinteger.h:34
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
Ptr< AttributeChecker > MakePointerChecker()
Create a PointerChecker for a type.
Definition pointer.h:269
Ptr< const AttributeChecker > MakeUintegerChecker()
Definition uinteger.h:85
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
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.