A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
snr-to-block-error-rate-record.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007,2008, 2009 INRIA, UDcast
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
18
* <amine.ismail@udcast.com>
19
*/
20
21
#include "
snr-to-block-error-rate-record.h
"
22
23
#include "ns3/assert.h"
24
#include "ns3/simulator.h"
25
26
namespace
ns3
27
{
28
29
SNRToBlockErrorRateRecord::SNRToBlockErrorRateRecord
(
double
snrValue,
30
double
bitErrorRate,
31
double
blockErrorRate,
32
double
sigma2,
33
double
I1,
34
double
I2)
35
{
36
m_snrValue
= snrValue;
37
m_bitErrorRate
= bitErrorRate;
38
m_blockErrorRate
= blockErrorRate;
39
m_sigma2
= sigma2;
40
m_i1
= I1;
41
m_i2
= I2;
42
}
43
44
SNRToBlockErrorRateRecord
*
45
SNRToBlockErrorRateRecord::Copy
()
const
46
{
47
return
(
new
SNRToBlockErrorRateRecord
(
m_snrValue
,
48
m_bitErrorRate
,
49
m_blockErrorRate
,
50
m_sigma2
,
51
m_i1
,
52
m_i2
));
53
}
54
55
double
56
SNRToBlockErrorRateRecord::GetSNRValue
()
const
57
{
58
return
m_snrValue
;
59
}
60
61
SNRToBlockErrorRateRecord::~SNRToBlockErrorRateRecord
()
62
{
63
m_snrValue
= 0;
64
m_bitErrorRate
= 0;
65
m_blockErrorRate
= 0;
66
m_sigma2
= 0;
67
m_i1
= 0;
68
m_i2
= 0;
69
}
70
71
double
72
SNRToBlockErrorRateRecord::GetBitErrorRate
()
const
73
{
74
return
m_bitErrorRate
;
75
}
76
77
double
78
SNRToBlockErrorRateRecord::GetBlockErrorRate
()
const
79
{
80
return
m_blockErrorRate
;
81
}
82
83
double
84
SNRToBlockErrorRateRecord::GetSigma2
()
const
85
{
86
return
m_sigma2
;
87
}
88
89
double
90
SNRToBlockErrorRateRecord::GetI1
()
const
91
{
92
return
m_i1
;
93
}
94
95
double
96
SNRToBlockErrorRateRecord::GetI2
()
const
97
{
98
return
m_i2
;
99
}
100
101
void
102
SNRToBlockErrorRateRecord::SetSNRValue
(
double
snrValue)
103
{
104
m_snrValue
= snrValue;
105
}
106
107
void
108
SNRToBlockErrorRateRecord::SetBitErrorRate
(
double
bitErrorRate)
109
{
110
m_bitErrorRate
= bitErrorRate;
111
}
112
113
void
114
SNRToBlockErrorRateRecord::SetBlockErrorRate
(
double
blockErrorRate)
115
{
116
m_blockErrorRate
= blockErrorRate;
117
}
118
119
void
120
SNRToBlockErrorRateRecord::SetI1
(
double
i1)
121
{
122
m_i1
= i1;
123
}
124
125
void
126
SNRToBlockErrorRateRecord::SetI2
(
double
i2)
127
{
128
m_i2
= i2;
129
}
130
131
}
// namespace ns3
ns3::SNRToBlockErrorRateRecord
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
Definition:
snr-to-block-error-rate-record.h:35
ns3::SNRToBlockErrorRateRecord::GetSNRValue
double GetSNRValue() const
Definition:
snr-to-block-error-rate-record.cc:56
ns3::SNRToBlockErrorRateRecord::GetI2
double GetI2() const
Definition:
snr-to-block-error-rate-record.cc:96
ns3::SNRToBlockErrorRateRecord::m_i1
double m_i1
The lower boundary of the confidence interval.
Definition:
snr-to-block-error-rate-record.h:115
ns3::SNRToBlockErrorRateRecord::GetBlockErrorRate
double GetBlockErrorRate() const
Definition:
snr-to-block-error-rate-record.cc:78
ns3::SNRToBlockErrorRateRecord::m_snrValue
double m_snrValue
SNR value.
Definition:
snr-to-block-error-rate-record.h:111
ns3::SNRToBlockErrorRateRecord::SetSNRValue
void SetSNRValue(double snrValue)
set the snr value
Definition:
snr-to-block-error-rate-record.cc:102
ns3::SNRToBlockErrorRateRecord::m_bitErrorRate
double m_bitErrorRate
bit error rate
Definition:
snr-to-block-error-rate-record.h:112
ns3::SNRToBlockErrorRateRecord::m_blockErrorRate
double m_blockErrorRate
block error rate
Definition:
snr-to-block-error-rate-record.h:113
ns3::SNRToBlockErrorRateRecord::SetBitErrorRate
void SetBitErrorRate(double bitErrorRate)
set the BER value
Definition:
snr-to-block-error-rate-record.cc:108
ns3::SNRToBlockErrorRateRecord::~SNRToBlockErrorRateRecord
~SNRToBlockErrorRateRecord()
Definition:
snr-to-block-error-rate-record.cc:61
ns3::SNRToBlockErrorRateRecord::GetBitErrorRate
double GetBitErrorRate() const
Definition:
snr-to-block-error-rate-record.cc:72
ns3::SNRToBlockErrorRateRecord::SetI2
void SetI2(double i2)
set the upper boundary of the confidence interval
Definition:
snr-to-block-error-rate-record.cc:126
ns3::SNRToBlockErrorRateRecord::m_i2
double m_i2
The upper boundary of the confidence interval.
Definition:
snr-to-block-error-rate-record.h:116
ns3::SNRToBlockErrorRateRecord::GetI1
double GetI1() const
Definition:
snr-to-block-error-rate-record.cc:90
ns3::SNRToBlockErrorRateRecord::Copy
SNRToBlockErrorRateRecord * Copy() const
copy a record
Definition:
snr-to-block-error-rate-record.cc:45
ns3::SNRToBlockErrorRateRecord::GetSigma2
double GetSigma2() const
Definition:
snr-to-block-error-rate-record.cc:84
ns3::SNRToBlockErrorRateRecord::m_sigma2
double m_sigma2
sigma2
Definition:
snr-to-block-error-rate-record.h:114
ns3::SNRToBlockErrorRateRecord::SetI1
void SetI1(double i1)
set the lower boundary of the confidence interval
Definition:
snr-to-block-error-rate-record.cc:120
ns3::SNRToBlockErrorRateRecord::SNRToBlockErrorRateRecord
SNRToBlockErrorRateRecord(double snrValue, double bitErrorRate, double BlockErrorRate, double sigma2, double I1, double I2)
creates a record and sets its values
Definition:
snr-to-block-error-rate-record.cc:29
ns3::SNRToBlockErrorRateRecord::SetBlockErrorRate
void SetBlockErrorRate(double blockErrorRate)
set the BlcER value
Definition:
snr-to-block-error-rate-record.cc:114
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
snr-to-block-error-rate-record.h
src
wimax
model
snr-to-block-error-rate-record.cc
Generated on Sun Mar 3 2024 17:11:14 for ns-3 by
1.9.1