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-interference.h
Go to the documentation of this file.
1
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 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_INTERFERENCE_H
23
#define LTE_INTERFERENCE_H
24
25
#include <ns3/object.h>
26
#include <ns3/packet.h>
27
#include <ns3/nstime.h>
28
#include <ns3/spectrum-value.h>
29
30
#include <list>
31
32
namespace
ns3 {
33
34
35
36
37
class
LteSinrChunkProcessor;
38
39
40
46
class
LteInterference
:
public
Object
47
{
48
public
:
49
LteInterference
();
50
virtual
~LteInterference
();
51
52
// inherited from Object
53
static
TypeId
GetTypeId
(
void
);
54
virtual
void
DoDispose
();
55
63
void
AddSinrChunkProcessor
(
Ptr<LteSinrChunkProcessor>
p);
64
70
void
StartRx
(
Ptr<const SpectrumValue>
rxPsd);
71
72
78
void
EndRx
();
79
80
89
void
AddSignal
(
Ptr<const SpectrumValue>
spd,
const
Time
duration);
90
91
97
void
SetNoisePowerSpectralDensity
(
Ptr<const SpectrumValue>
noisePsd);
98
99
private
:
100
void
ConditionallyEvaluateChunk
();
101
void
DoAddSignal
(
Ptr<const SpectrumValue>
spd);
102
void
DoSubtractSignal
(
Ptr<const SpectrumValue>
spd);
103
104
105
106
bool
m_receiving
;
107
108
Ptr<SpectrumValue>
m_rxSignal
;
113
Ptr<SpectrumValue>
m_allSignals
;
118
Ptr<const SpectrumValue>
m_noise
;
119
120
Time
m_lastChangeTime
;
125
std::list<Ptr<LteSinrChunkProcessor> >
m_sinrChunkProcessorList
;
126
127
128
129
};
130
131
132
133
}
// namespace ns3
134
135
136
137
138
139
#endif
/* LTE_INTERFERENCE_H */
src
lte
model
lte-interference.h
Generated on Tue Oct 9 2012 16:45:40 for ns-3 by
1.8.1.2