A Discrete-Event Network Simulator
API
lte-simple-helper.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012 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: Manuel Requena <manuel.requena@cttc.es> (Based on lte-helper.h)
18 */
19
20#ifndef LTE_SIMPLE_HELPER_H
21#define LTE_SIMPLE_HELPER_H
22
23#include "ns3/lte-pdcp.h"
24#include "ns3/lte-rlc-am.h"
25#include "ns3/lte-rlc-um.h"
26#include "ns3/lte-rlc.h"
27#include "ns3/net-device-container.h"
28#include "ns3/node-container.h"
29#include "ns3/radio-bearer-stats-calculator.h"
30#include "ns3/simple-channel.h"
31
32namespace ns3
33{
34
35class LteTestRrc;
36class LteTestMac;
37
46class LteSimpleHelper : public Object
47{
48 public:
50 ~LteSimpleHelper() override;
51
56 static TypeId GetTypeId();
57 void DoDispose() override;
58
67
76
82
86 void EnableTraces();
87
91 void EnableRlcTraces();
92
96 void EnableDlRlcTraces();
97
101 void EnableUlRlcTraces();
102
106 void EnablePdcpTraces();
107
111 void EnableDlPdcpTraces();
112
116 void EnableUlPdcpTraces();
117
118 protected:
119 // inherited from Object
120 void DoInitialize() override;
121
122 private:
137
139
140 public:
143
146
147 private:
150
153
156
159 {
161 RLC_AM = 2
163};
164
165} // namespace ns3
166
167#endif // LTE_SIMPLE_HELPER_H
A simplified version of LteHelper, that is used for creation and configuration of LTE entities for te...
ObjectFactory m_ueDeviceFactory
UE device factory.
Ptr< NetDevice > InstallSingleEnbDevice(Ptr< Node > n)
Install single ENB device.
Ptr< LteTestRrc > m_ueRrc
UE RRC.
static TypeId GetTypeId()
Get the type ID.
Ptr< LtePdcp > m_enbPdcp
ENB PDCP.
NetDeviceContainer InstallEnbDevice(NodeContainer c)
create a set of eNB devices
Ptr< NetDevice > InstallSingleUeDevice(Ptr< Node > n)
Install single UE device.
void EnableDlPdcpTraces()
Enable trace sinks for DL PDCP layer.
ObjectFactory m_enbDeviceFactory
ENB device factory.
Ptr< SimpleChannel > m_phyChannel
the physical channel
void EnableRlcTraces()
Enable trace sinks for RLC layer.
void DoDispose() override
Destructor implementation.
void EnableUlRlcTraces()
Enable trace sinks for UL RLC layer.
Ptr< LteTestRrc > m_enbRrc
ENB RRC.
void EnableDlRlcTraces()
Enable trace sinks for DL RLC layer.
Ptr< LteTestMac > m_enbMac
ENB MAC.
Ptr< LteTestMac > m_ueMac
UE MAC.
LteRlcEntityType_t
LteRlcEntityType_t enumeration.
void EnableTraces()
Enables trace sinks for MAC, RLC and PDCP.
Ptr< LteRlc > m_ueRlc
UE RLC.
NetDeviceContainer InstallUeDevice(NodeContainer c)
create a set of UE devices
void DoInitialize() override
Initialize() implementation.
Ptr< LtePdcp > m_uePdcp
UE PDCP.
Ptr< LteRlc > m_enbRlc
ENB RLC.
enum ns3::LteSimpleHelper::LteRlcEntityType_t m_lteRlcEntityType
RLC entity type.
void EnableLogComponents()
Enables logging for all components of the LENA architecture.
void EnablePdcpTraces()
Enable trace sinks for PDCP layer.
void EnableUlPdcpTraces()
Enable trace sinks for UL PDCP layer.
holds a vector of ns3::NetDevice pointers
keep track of a set of node pointers.
Instantiate subclasses of ns3::Object.
A base class which provides memory management and object aggregation.
Definition: object.h:89
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:78
a unique identifier for an interface.
Definition: type-id.h:60
Every class exported by the ns3 library is enclosed in the ns3 namespace.