A Discrete-Event Network Simulator
API
snr-to-block-error-rate-record.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2007,2008, 2009 INRIA, UDcast
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: Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
19  * <amine.ismail@udcast.com>
20  */
21 
22 #ifndef SNR_TO_BLOCK_ERROR_RATE_RECORD_H
23 #define SNR_TO_BLOCK_ERROR_RATE_RECORD_H
24 
25 namespace ns3 {
26 
35 {
36 public:
46  SNRToBlockErrorRateRecord (double snrValue, double bitErrorRate,
47  double BlockErrorRate, double sigma2, double I1, double I2);
49 
53  double GetSNRValue (void);
57  double GetBitErrorRate (void);
61  double GetBlockErrorRate (void);
65  double GetSigma2 (void);
69  double GetI1 (void);
73  double GetI2 (void);
79  Copy ();
80 
84  void SetSNRValue (double);
88  void SetBitErrorRate (double);
92  void SetBlockErrorRate (double);
96  void SetI1 (double);
100  void SetI2 (double);
101 
102 private:
103  double m_snrValue;
104  double m_bitErrorRate;
106  double m_sigma2;
107  double m_i1;
108  double m_i2;
109 };
110 
111 }
112 
113 #endif /* SNR_TO_BLOCK_ERROR_RATE_RECORD_H */
SNRToBlockErrorRateRecord(double snrValue, double bitErrorRate, double BlockErrorRate, double sigma2, double I1, double I2)
creates a record and sets its values
double m_i2
The upper boundary of the confidence interval.
double m_i1
The lower boundary of the confidence interval.
This class represents a record (handled by SnrToBlockErrorRate manager) that keeps a mapping between ...
void SetBlockErrorRate(double)
set the BlcER value
SNRToBlockErrorRateRecord * Copy()
copy a record
void SetI2(double)
set the upper boundary of the confidence interval
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void SetI1(double)
set the lower boundary of the confidence interval
void SetSNRValue(double)
set the snr value
void SetBitErrorRate(double)
set the BER value