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 
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 
33 {
34 }
35 
37 {
38 }
39 
40 TypeId
42 {
43  static TypeId tid =
44  TypeId("ns3::LteRadioBearerInfo").SetParent<Object>().AddConstructor<LteRadioBearerInfo>();
45  return tid;
46 }
47 
48 TypeId
50 {
51  static TypeId tid =
52  TypeId("ns3::LteDataRadioBearerInfo")
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
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
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
72  MakeUintegerChecker<uint8_t>())
73  .AddAttribute("LteRlc",
74  "RLC instance of the radio bearer.",
75  PointerValue(),
77  MakePointerChecker<LteRlc>())
78  .AddAttribute("LtePdcp",
79  "PDCP instance of the radio bearer.",
80  PointerValue(),
82  MakePointerChecker<LtePdcp>());
83  return tid;
84 }
85 
86 TypeId
88 {
89  static TypeId tid =
90  TypeId("ns3::LteSignalingRadioBearerInfo")
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
98  MakeUintegerChecker<uint8_t>())
99  .AddAttribute("LteRlc",
100  "RLC instance of the radio bearer.",
101  PointerValue(),
103  MakePointerChecker<LteRlc>())
104  .AddAttribute("LtePdcp",
105  "PDCP instance of the radio bearer.",
106  PointerValue(),
108  MakePointerChecker<LtePdcp>());
109  return tid;
110 }
111 
112 } // 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:931
Hold an unsigned integer type.
Definition: uinteger.h:45
#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.
Ptr< const AttributeAccessor > MakePointerAccessor(T1 a1)
Definition: pointer.h:227
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Definition: uinteger.h:46