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  ;
34 
36 {
37 }
38 
40 {
41 }
42 
43 TypeId
45 {
46  static TypeId
47  tid =
48  TypeId ("ns3::LteRadioBearerInfo")
49  .SetParent<Object> ()
50  .AddConstructor<LteRadioBearerInfo> ()
51  ;
52  return tid;
53 }
54 
55 
56 TypeId
58 {
59  static TypeId
60  tid =
61  TypeId ("ns3::LteDataRadioBearerInfo")
63  .AddConstructor<LteDataRadioBearerInfo> ()
64  .AddAttribute ("DrbIdentity", "The id of this Data Radio Bearer",
65  TypeId::ATTR_GET, // allow only getting it.
66  UintegerValue (0), // unused (attribute is read-only
67  MakeUintegerAccessor (&LteDataRadioBearerInfo::m_drbIdentity),
68  MakeUintegerChecker<uint8_t> ())
69  .AddAttribute ("EpsBearerIdentity", "The id of the EPS bearer corresponding to this Data Radio Bearer",
70  TypeId::ATTR_GET, // allow only getting it.
71  UintegerValue (0), // unused (attribute is read-only
72  MakeUintegerAccessor (&LteDataRadioBearerInfo::m_epsBearerIdentity),
73  MakeUintegerChecker<uint8_t> ())
74  .AddAttribute ("logicalChannelIdentity", "The id of the Logical Channel corresponding to this Data Radio Bearer",
75  TypeId::ATTR_GET, // allow only getting it.
76  UintegerValue (0), // unused (attribute is read-only
78  MakeUintegerChecker<uint8_t> ())
79  .AddAttribute ("LteRlc", "RLC instance of the radio bearer.",
80  PointerValue (),
81  MakePointerAccessor (&LteRadioBearerInfo::m_rlc),
82  MakePointerChecker<LteRlc> ())
83  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
84  PointerValue (),
85  MakePointerAccessor (&LteRadioBearerInfo::m_pdcp),
86  MakePointerChecker<LtePdcp> ())
87  ;
88  return tid;
89 }
90 
91 
92 TypeId
94 {
95  static TypeId
96  tid =
97  TypeId ("ns3::LteSignalingRadioBearerInfo")
99  .AddConstructor<LteSignalingRadioBearerInfo> ()
100  .AddAttribute ("SrbIdentity", "The id of this Signaling Radio Bearer",
101  TypeId::ATTR_GET, // allow only getting it.
102  UintegerValue (0), // unused (attribute is read-only
103  MakeUintegerAccessor (&LteSignalingRadioBearerInfo::m_srbIdentity),
104  MakeUintegerChecker<uint8_t> ())
105  .AddAttribute ("LteRlc", "RLC instance of the radio bearer.",
106  PointerValue (),
107  MakePointerAccessor (&LteRadioBearerInfo::m_rlc),
108  MakePointerChecker<LteRlc> ())
109  .AddAttribute ("LtePdcp", "PDCP instance of the radio bearer.",
110  PointerValue (),
111  MakePointerAccessor (&LteRadioBearerInfo::m_pdcp),
112  MakePointerChecker<LtePdcp> ())
113  ;
114  return tid;
115 }
116 
117 
118 
119 } // namespace ns3
static TypeId GetTypeId(void)
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
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:63
a unique identifier for an interface.
Definition: type-id.h:49
TypeId SetParent(TypeId tid)
Definition: type-id.cc:611