A Discrete-Event Network Simulator
API
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 
35 {
36 }
37 
39 {
40 }
41 
42 TypeId
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
57 {
58  static TypeId
59  tid =
60  TypeId ("ns3::LteDataRadioBearerInfo")
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
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
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
77  MakeUintegerChecker<uint8_t> ())
78  .AddAttribute ("LteRlc", "RLC instance of the radio bearer.",
79  PointerValue (),
81  MakePointerChecker<LteRlc> ())
82  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
83  PointerValue (),
85  MakePointerChecker<LtePdcp> ())
86  ;
87  return tid;
88 }
89 
90 
91 TypeId
93 {
94  static TypeId
95  tid =
96  TypeId ("ns3::LteSignalingRadioBearerInfo")
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
103  MakeUintegerChecker<uint8_t> ())
104  .AddAttribute ("LteRlc", "RLC instance of the radio bearer.",
105  PointerValue (),
107  MakePointerChecker<LteRlc> ())
108  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
109  PointerValue (),
111  MakePointerChecker<LtePdcp> ())
112  ;
113  return tid;
114 }
115 
116 
117 
118 } // namespace ns3
static TypeId GetTypeId(void)
Get the type ID.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:45
The attribute can be read.
Definition: type-id.h:63
Ptr< LtePdcp > m_pdcp
PDCP.
static TypeId GetTypeId(void)
Get the type ID.
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
uint8_t m_logicalChannelIdentity
logical channel identity
Hold an unsigned integer type.
Definition: uinteger.h:44
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Hold objects of type Ptr<T>.
Definition: pointer.h:36
uint8_t m_drbIdentity
DRB identity.
store information on active radio bearer instance
static TypeId GetTypeId(void)
Get the type ID.
A base class which provides memory management and object aggregation.
Definition: object.h:87
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
a unique identifier for an interface.
Definition: type-id.h:58
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:915
uint8_t m_epsBearerIdentity
EPS bearer identity.