A Discrete-Event Network Simulator
API
 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 
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
66  MakeUintegerAccessor (&LteDataRadioBearerInfo::m_drbIdentity),
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
71  MakeUintegerAccessor (&LteDataRadioBearerInfo::m_epsBearerIdentity),
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 (),
80  MakePointerAccessor (&LteRadioBearerInfo::m_rlc),
81  MakePointerChecker<LteRlc> ())
82  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
83  PointerValue (),
84  MakePointerAccessor (&LteRadioBearerInfo::m_pdcp),
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
102  MakeUintegerAccessor (&LteSignalingRadioBearerInfo::m_srbIdentity),
103  MakeUintegerChecker<uint8_t> ())
104  .AddAttribute ("LteRlc", "RLC instance of the radio bearer.",
105  PointerValue (),
106  MakePointerAccessor (&LteRadioBearerInfo::m_rlc),
107  MakePointerChecker<LteRlc> ())
108  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
109  PointerValue (),
110  MakePointerAccessor (&LteRadioBearerInfo::m_pdcp),
111  MakePointerChecker<LtePdcp> ())
112  ;
113  return tid;
114 }
115 
116 
117 
118 } // namespace ns3
static TypeId GetTypeId(void)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
Definition: object-base.h:38
The attribute can be read.
Definition: type-id.h:56
Hold an unsigned integer type.
Definition: uinteger.h:46
hold objects of type Ptr
Definition: pointer.h:33
store information on active radio bearer instance
a base class which provides memory management and object aggregation
Definition: object.h:64
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:610