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-sinr-chunk-processor.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009, 2010 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
22
#ifndef LTE_SINR_CHUNK_PROCESSOR_H
23
#define LTE_SINR_CHUNK_PROCESSOR_H
24
25
#include <ns3/spectrum-value.h>
26
#include <ns3/ptr.h>
27
#include <ns3/packet.h>
28
#include <ns3/nstime.h>
29
#include <ns3/object.h>
30
#include <ns3/lte-phy.h>
31
#include <ns3/lte-spectrum-phy.h>
32
33
namespace
ns3 {
34
35
36
43
class
LteSinrChunkProcessor
:
public
SimpleRefCount
<LteSinrChunkProcessor>
44
{
45
public
:
46
virtual
~LteSinrChunkProcessor
();
47
virtual
void
Start
() = 0;
48
virtual
void
EvaluateSinrChunk
(
const
SpectrumValue
& sinr,
Time
duration) = 0;
49
virtual
void
End
() = 0;
50
};
51
52
53
54
59
class
LteCqiSinrChunkProcessor
:
public
LteSinrChunkProcessor
60
{
61
public
:
62
virtual
~LteCqiSinrChunkProcessor
();
63
LteCqiSinrChunkProcessor
(
Ptr<LtePhy>
p);
64
virtual
void
Start
();
65
virtual
void
EvaluateSinrChunk
(
const
SpectrumValue
& sinr,
Time
duration);
66
virtual
void
End
();
67
private
:
68
Ptr<SpectrumValue>
m_sumSinr
;
69
Time
m_totDuration
;
70
Ptr<LtePhy>
m_phy
;
71
};
72
73
74
79
class
LtePemSinrChunkProcessor
:
public
LteSinrChunkProcessor
80
{
81
public
:
82
virtual
~LtePemSinrChunkProcessor
();
83
LtePemSinrChunkProcessor
(
Ptr<LteSpectrumPhy>
p);
84
virtual
void
Start
();
85
virtual
void
EvaluateSinrChunk
(
const
SpectrumValue
& sinr,
Time
duration);
86
virtual
void
End
();
87
private
:
88
Ptr<SpectrumValue>
m_sumSinr
;
89
Time
m_totDuration
;
90
Ptr<LteSpectrumPhy>
m_phy
;
91
};
92
93
94
95
96
97
}
// namespace ns3
98
99
100
101
#endif
/* LTE_SINR_PROCESSOR_H */
src
lte
model
lte-sinr-chunk-processor.h
Generated on Tue Nov 13 2012 10:32:17 for ns-3 by
1.8.1.2