This documentation is not the
Latest Release
.
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
lte-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
* Modified by : Marco Miozzo <mmiozzo@cttc.es>
20
* (move from CQI to Ctrl and Data SINR Chunk processors)
21
* Modified by : Piotr Gawlowicz <gawlowicz.p@gmail.com>
22
* (removed all Lte***ChunkProcessor implementations
23
* and created generic LteChunkProcessor)
24
*/
25
26
27
#ifndef LTE_CHUNK_PROCESSOR_H
28
#define LTE_CHUNK_PROCESSOR_H
29
30
#include <ns3/ptr.h>
31
#include <ns3/nstime.h>
32
#include <ns3/object.h>
33
34
namespace
ns3
{
35
36
class
SpectrumValue
;
37
38
typedef
Callback< void, const SpectrumValue& >
LteChunkProcessorCallback
;
39
45
class
LteChunkProcessor
:
public
SimpleRefCount
<LteChunkProcessor>
46
{
47
public
:
48
LteChunkProcessor
();
49
virtual
~LteChunkProcessor
();
50
58
virtual
void
AddCallback
(LteChunkProcessorCallback c);
59
66
virtual
void
Start
();
67
73
virtual
void
EvaluateChunk
(
const
SpectrumValue
& sinr,
Time
duration);
74
82
virtual
void
End
();
83
84
private
:
85
Ptr<SpectrumValue>
m_sumValues
;
86
Time
m_totDuration
;
87
88
std::vector<LteChunkProcessorCallback>
m_lteChunkProcessorCallbacks
;
89
};
90
91
97
class
LteSpectrumValueCatcher
98
{
99
public
:
100
106
void
ReportValue
(
const
SpectrumValue
& value);
107
113
Ptr<SpectrumValue>
GetValue
();
114
115
private
:
116
Ptr<SpectrumValue>
m_value
;
117
};
118
119
}
// namespace ns3
120
121
122
123
#endif
/* LTE_CHUNK_PROCESSOR_H */
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::Ptr< SpectrumValue >
ns3::Callback
Callback template class.
Definition:
callback.h:1164
ns3::LteSpectrumValueCatcher::GetValue
Ptr< SpectrumValue > GetValue()
Definition:
lte-chunk-processor.cc:97
ns3::LteSpectrumValueCatcher::ReportValue
void ReportValue(const SpectrumValue &value)
function to be plugged to LteChunkProcessor::AddCallback ()
Definition:
lte-chunk-processor.cc:91
ns3::LteChunkProcessor::EvaluateChunk
virtual void EvaluateChunk(const SpectrumValue &sinr, Time duration)
Collect SpectrumValue and duration of signal.
Definition:
lte-chunk-processor.cc:59
ns3::LteChunkProcessor
This abstract class is used to process the time-vs-frequency SINR/interference/power chunk of a recei...
Definition:
lte-chunk-processor.h:45
ns3::LteChunkProcessor::Start
virtual void Start()
Clear internal variables.
Definition:
lte-chunk-processor.cc:50
ns3::LteChunkProcessor::LteChunkProcessor
LteChunkProcessor()
Definition:
lte-chunk-processor.cc:32
ns3::LteChunkProcessor::AddCallback
virtual void AddCallback(LteChunkProcessorCallback c)
Add callback to list.
Definition:
lte-chunk-processor.cc:43
ns3::LteChunkProcessor::End
virtual void End()
Finish calculation and inform interested objects about calculated value.
Definition:
lte-chunk-processor.cc:71
ns3::LteChunkProcessor::~LteChunkProcessor
virtual ~LteChunkProcessor()
Definition:
lte-chunk-processor.cc:37
ns3::LteSpectrumValueCatcher::m_value
Ptr< SpectrumValue > m_value
Definition:
lte-chunk-processor.h:116
ns3::LteChunkProcessorCallback
Callback< void, const SpectrumValue & > LteChunkProcessorCallback
Definition:
lte-chunk-processor.h:36
ns3::LteSpectrumValueCatcher
A sink to be plugged to the callback of LteChunkProcessor allowing to save and later retrieve the lat...
Definition:
lte-chunk-processor.h:97
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::LteChunkProcessor::m_lteChunkProcessorCallbacks
std::vector< LteChunkProcessorCallback > m_lteChunkProcessorCallbacks
Definition:
lte-chunk-processor.h:88
ns3::LteChunkProcessor::m_sumValues
Ptr< SpectrumValue > m_sumValues
Definition:
lte-chunk-processor.h:85
ns3::SpectrumValue
Set of values corresponding to a given SpectrumModel.
Definition:
spectrum-value.h:57
ns3::SimpleRefCount
A template-based reference counting class.
Definition:
simple-ref-count.h:72
ns3::LteChunkProcessor::m_totDuration
Time m_totDuration
Definition:
lte-chunk-processor.h:86
src
lte
model
lte-chunk-processor.h
Generated on Wed Nov 11 2015 20:00:37 for ns-3 by
1.8.9.1