A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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
22
23#include "ns3/assert.h"
24#include "ns3/simulator.h"
25
26namespace ns3
27{
28
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
46{
51 m_i1,
52 m_i2));
53}
54
55double
57{
58 return m_snrValue;
59}
60
62{
63 m_snrValue = 0;
66 m_sigma2 = 0;
67 m_i1 = 0;
68 m_i2 = 0;
69}
70
71double
73{
74 return m_bitErrorRate;
75}
76
77double
79{
80 return m_blockErrorRate;
81}
82
83double
85{
86 return m_sigma2;
87}
88
89double
91{
92 return m_i1;
93}
94
95double
97{
98 return m_i2;
99}
100
101void
103{
104 m_snrValue = snrValue;
105}
106
107void
109{
110 m_bitErrorRate = bitErrorRate;
111}
112
113void
115{
116 m_blockErrorRate = blockErrorRate;
117}
118
119void
121{
122 m_i1 = i1;
123}
124
125void
127{
128 m_i2 = i2;
129}
130
131} // namespace ns3
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
double m_i1
The lower boundary of the confidence interval.
void SetSNRValue(double snrValue)
set the snr value
void SetBitErrorRate(double bitErrorRate)
set the BER value
void SetI2(double i2)
set the upper boundary of the confidence interval
double m_i2
The upper boundary of the confidence interval.
SNRToBlockErrorRateRecord * Copy() const
copy a record
void SetI1(double i1)
set the lower boundary of the confidence interval
SNRToBlockErrorRateRecord(double snrValue, double bitErrorRate, double BlockErrorRate, double sigma2, double I1, double I2)
creates a record and sets its values
void SetBlockErrorRate(double blockErrorRate)
set the BlcER value
Every class exported by the ns3 library is enclosed in the ns3 namespace.