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-rlc.h
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
#ifndef LTE_RLC_H
22
#define LTE_RLC_H
23
24
#include <ns3/simple-ref-count.h>
25
#include <ns3/packet.h>
26
#include "ns3/uinteger.h"
27
#include "ns3/traced-value.h"
28
#include "ns3/trace-source-accessor.h"
29
#include "ns3/nstime.h"
30
31
#include "ns3/object.h"
32
33
#include "ns3/lte-rlc-sap.h"
34
#include "ns3/lte-mac-sap.h"
35
36
namespace
ns3 {
37
38
39
// class LteRlcSapProvider;
40
// class LteRlcSapUser;
41
//
42
// class LteMacSapProvider;
43
// class LteMacSapUser;
44
50
class
LteRlc
:
public
Object
// SimpleRefCount<LteRlc>
51
{
52
friend
class
LteRlcSpecificLteMacSapUser
;
53
friend
class
LteRlcSpecificLteRlcSapProvider
<
LteRlc
>;
54
public
:
55
LteRlc
();
56
virtual
~LteRlc
();
57
static
TypeId
GetTypeId
(
void
);
58
virtual
void
DoDispose
();
59
65
void
SetRnti
(uint16_t rnti);
66
72
void
SetLcId
(uint8_t lcId);
73
79
void
SetLteRlcSapUser
(
LteRlcSapUser
*
s
);
80
86
LteRlcSapProvider
*
GetLteRlcSapProvider
();
87
93
void
SetLteMacSapProvider
(
LteMacSapProvider
*
s
);
94
100
LteMacSapUser
*
GetLteMacSapUser
();
101
102
103
105
// NB to avoid the use of multiple inheritance
106
107
protected
:
108
// Interface forwarded by LteRlcSapProvider
109
virtual
void
DoTransmitPdcpPdu
(
Ptr<Packet>
p) = 0;
110
111
LteRlcSapUser
*
m_rlcSapUser
;
112
LteRlcSapProvider
*
m_rlcSapProvider
;
113
114
// Interface forwarded by LteMacSapUser
115
virtual
void
DoNotifyTxOpportunity
(uint32_t bytes, uint8_t layer, uint8_t harqId) = 0;
116
virtual
void
DoNotifyHarqDeliveryFailure
() = 0;
117
virtual
void
DoReceivePdu
(
Ptr<Packet>
p) = 0;
118
119
LteMacSapUser
*
m_macSapUser
;
120
LteMacSapProvider
*
m_macSapProvider
;
121
122
uint16_t
m_rnti
;
123
uint8_t
m_lcid
;
124
128
TracedCallback<uint16_t, uint8_t, uint32_t>
m_txPdu
;
132
TracedCallback<uint16_t, uint8_t, uint32_t, uint64_t>
m_rxPdu
;
133
134
};
135
136
137
146
class
LteRlcSm
:
public
LteRlc
147
{
148
public
:
149
LteRlcSm
();
150
virtual
~LteRlcSm
();
151
static
TypeId
GetTypeId
(
void
);
152
virtual
void
DoInitialize
();
153
virtual
void
DoDispose
();
154
155
virtual
void
DoTransmitPdcpPdu
(
Ptr<Packet>
p);
156
virtual
void
DoNotifyTxOpportunity
(uint32_t bytes, uint8_t layer, uint8_t harqId);
157
virtual
void
DoNotifyHarqDeliveryFailure
();
158
virtual
void
DoReceivePdu
(
Ptr<Packet>
p);
159
160
161
162
private
:
163
void
ReportBufferStatus
();
164
165
};
166
167
168
169
170
// /**
171
// * Implements LTE_RLC Transparent Mode (TM), see 3GPP TS 36.322
172
// *
173
// */
174
// class LteRlcTm : public LteRlc
175
// {
176
// public:
177
// virtual ~LteRlcTm ();
178
179
// };
180
181
182
// /**
183
// * Implements LTE_RLC Unacknowledged Mode (UM), see 3GPP TS 36.322
184
// *
185
// */
186
// class LteRlcUm : public LteRlc
187
// {
188
// public:
189
// virtual ~LteRlcUm ();
190
191
// };
192
193
// /**
194
// * Implements LTE_RLC Acknowledged Mode (AM), see 3GPP TS 36.322
195
// *
196
// */
197
198
// class LteRlcAm : public LteRlc
199
// {
200
// public:
201
// virtual ~LteRlcAm ();
202
// };
203
204
205
206
207
208
}
// namespace ns3
209
210
#endif // LTE_RLC_H
ns3::LteRlcSapUser
Definition:
lte-rlc-sap.h:66
ns3::LteRlc::m_macSapUser
LteMacSapUser * m_macSapUser
Definition:
lte-rlc.h:119
ns3::LteRlc::m_txPdu
TracedCallback< uint16_t, uint8_t, uint32_t > m_txPdu
Definition:
lte-rlc.h:128
ns3::Ptr< Packet >
ns3::LteRlcSm::~LteRlcSm
virtual ~LteRlcSm()
Definition:
lte-rlc.cc:177
ns3::LteRlcSapProvider
Definition:
lte-rlc-sap.h:35
ns3::LteRlcSm::DoReceivePdu
virtual void DoReceivePdu(Ptr< Packet > p)
Definition:
lte-rlc.cc:213
ns3::LteRlc::~LteRlc
virtual ~LteRlc()
Definition:
lte-rlc.cc:97
ns3::LteRlcSpecificLteMacSapUser
Definition:
lte-rlc.cc:39
ns3::LteRlcSm::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-rlc.cc:183
ns3::TracedCallback< uint16_t, uint8_t, uint32_t >
ns3::LteRlcSm::DoDispose
virtual void DoDispose()
Definition:
lte-rlc.cc:200
ns3::LteRlc::m_rnti
uint16_t m_rnti
Definition:
lte-rlc.h:122
ns3::LteRlc::m_lcid
uint8_t m_lcid
Definition:
lte-rlc.h:123
ns3::LteRlcSm::DoNotifyTxOpportunity
virtual void DoNotifyTxOpportunity(uint32_t bytes, uint8_t layer, uint8_t harqId)
Definition:
lte-rlc.cc:231
ns3::LteRlcSm::DoNotifyHarqDeliveryFailure
virtual void DoNotifyHarqDeliveryFailure()
Definition:
lte-rlc.cc:254
ns3::LteRlc::SetRnti
void SetRnti(uint16_t rnti)
Definition:
lte-rlc.cc:125
ns3::LteRlcSpecificLteRlcSapProvider
Definition:
lte-rlc-sap.h:82
ns3::LteRlc::m_rlcSapUser
LteRlcSapUser * m_rlcSapUser
Definition:
lte-rlc.h:111
s
Ptr< SampleEmitter > s
Definition:
double-probe-test-suite.cc:51
ns3::LteRlc::DoDispose
virtual void DoDispose()
Definition:
lte-rlc.cc:117
ns3::LteRlcSm::DoTransmitPdcpPdu
virtual void DoTransmitPdcpPdu(Ptr< Packet > p)
Definition:
lte-rlc.cc:207
ns3::LteRlc::GetLteMacSapUser
LteMacSapUser * GetLteMacSapUser()
Definition:
lte-rlc.cc:160
ns3::LteRlc::m_macSapProvider
LteMacSapProvider * m_macSapProvider
Definition:
lte-rlc.h:120
ns3::LteRlcSm::ReportBufferStatus
void ReportBufferStatus()
Definition:
lte-rlc.cc:260
ns3::LteRlc::DoNotifyTxOpportunity
virtual void DoNotifyTxOpportunity(uint32_t bytes, uint8_t layer, uint8_t harqId)=0
ns3::LteRlc::m_rlcSapProvider
LteRlcSapProvider * m_rlcSapProvider
Definition:
lte-rlc.h:112
ns3::LteRlc::SetLteRlcSapUser
void SetLteRlcSapUser(LteRlcSapUser *s)
Definition:
lte-rlc.cc:139
ns3::LteRlc::SetLcId
void SetLcId(uint8_t lcId)
Definition:
lte-rlc.cc:132
ns3::LteRlc::DoReceivePdu
virtual void DoReceivePdu(Ptr< Packet > p)=0
ns3::LteRlc::DoNotifyHarqDeliveryFailure
virtual void DoNotifyHarqDeliveryFailure()=0
ns3::LteMacSapUser
Definition:
lte-mac-sap.h:94
ns3::LteMacSapProvider
Definition:
lte-mac-sap.h:36
ns3::LteRlc::GetLteRlcSapProvider
LteRlcSapProvider * GetLteRlcSapProvider()
Definition:
lte-rlc.cc:146
ns3::LteRlc::m_rxPdu
TracedCallback< uint16_t, uint8_t, uint32_t, uint64_t > m_rxPdu
Definition:
lte-rlc.h:132
ns3::LteRlcSm::LteRlcSm
LteRlcSm()
Definition:
lte-rlc.cc:172
ns3::Object
a base class which provides memory management and object aggregation
Definition:
object.h:63
ns3::LteRlc::DoTransmitPdcpPdu
virtual void DoTransmitPdcpPdu(Ptr< Packet > p)=0
ns3::LteRlcSm::DoInitialize
virtual void DoInitialize()
Definition:
lte-rlc.cc:193
ns3::LteRlc
Definition:
lte-rlc.h:50
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
ns3::LteRlcSm
Definition:
lte-rlc.h:146
ns3::LteRlc::LteRlc
LteRlc()
Definition:
lte-rlc.cc:86
ns3::LteRlc::SetLteMacSapProvider
void SetLteMacSapProvider(LteMacSapProvider *s)
Definition:
lte-rlc.cc:153
ns3::LteRlc::GetTypeId
static TypeId GetTypeId(void)
Definition:
lte-rlc.cc:102
src
lte
model
lte-rlc.h
Generated on Sat Nov 16 2013 12:55:31 for ns-3 by
1.8.5