A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
lte-simple-helper.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2012 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: Manuel Requena <manuel.requena@cttc.es> (Based on lte-helper.h)
19
*/
20
21
#ifndef LTE_SIMPLE_HELPER_H
22
#define LTE_SIMPLE_HELPER_H
23
24
#include "ns3/net-device-container.h"
25
#include "ns3/simple-channel.h"
26
#include "ns3/node-container.h"
27
#include "ns3/radio-bearer-stats-calculator.h"
28
29
#include "ns3/lte-pdcp.h"
30
#include "ns3/lte-rlc.h"
31
#include "ns3/lte-rlc-um.h"
32
#include "ns3/lte-rlc-am.h"
33
34
namespace
ns3 {
35
36
class
LteTestRrc;
37
class
LteTestMac;
38
43
class
LteSimpleHelper
:
public
Object
44
{
45
public
:
46
LteSimpleHelper
(
void
);
47
virtual
~LteSimpleHelper
(
void
);
48
49
static
TypeId
GetTypeId
(
void
);
50
virtual
void
DoDispose
(
void
);
51
52
60
NetDeviceContainer
InstallEnbDevice
(
NodeContainer
c);
61
69
NetDeviceContainer
InstallUeDevice
(
NodeContainer
c);
70
71
76
void
EnableLogComponents
(
void
);
77
81
void
EnableTraces
(
void
);
82
83
87
void
EnableRlcTraces
(
void
);
88
92
void
EnableDlRlcTraces
(
void
);
93
97
void
EnableUlRlcTraces
(
void
);
98
99
103
void
EnablePdcpTraces
(
void
);
104
108
void
EnableDlPdcpTraces
(
void
);
109
113
void
EnableUlPdcpTraces
(
void
);
114
115
116
protected
:
117
// inherited from Object
118
virtual
void
DoStart
(
void
);
119
120
private
:
121
Ptr<NetDevice>
InstallSingleEnbDevice
(
Ptr<Node>
n);
122
Ptr<NetDevice>
InstallSingleUeDevice
(
Ptr<Node>
n);
123
124
Ptr<SimpleChannel>
m_phyChannel
;
125
126
public
:
127
128
Ptr<LteTestRrc>
m_enbRrc
;
129
Ptr<LteTestRrc>
m_ueRrc
;
130
131
Ptr<LteTestMac>
m_enbMac
;
132
Ptr<LteTestMac>
m_ueMac
;
133
134
private
:
135
136
Ptr<LtePdcp>
m_enbPdcp
;
137
Ptr<LteRlc>
m_enbRlc
;
138
139
Ptr<LtePdcp>
m_uePdcp
;
140
Ptr<LteRlc>
m_ueRlc
;
141
142
ObjectFactory
m_enbDeviceFactory
;
143
ObjectFactory
m_ueDeviceFactory
;
144
145
enum
LteRlcEntityType_t
{
RLC_UM
= 1,
146
RLC_AM
= 2 }
m_lteRlcEntityType
;
147
148
};
149
150
151
}
// namespace ns3
152
153
154
#endif // LTE_SIMPLE_HELPER_H
src
lte
test
lte-simple-helper.h
Generated on Fri Dec 21 2012 19:00:40 for ns-3 by
1.8.1.2