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-manager.h
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
#ifndef SNR_TO_BLOCK_ERROR_RATE_MANAGER_H
22
#define SNR_TO_BLOCK_ERROR_RATE_MANAGER_H
23
24
#include "
snr-to-block-error-rate-record.h
"
25
26
#include "ns3/ptr.h"
27
28
#include <vector>
29
30
namespace
ns3
31
{
32
56
class
SNRToBlockErrorRateManager
57
{
58
public
:
59
SNRToBlockErrorRateManager
();
60
~SNRToBlockErrorRateManager
();
65
void
SetTraceFilePath
(
char
* traceFilePath);
69
std::string
GetTraceFilePath
();
76
double
GetBlockErrorRate
(
double
SNR, uint8_t modulation);
77
SNRToBlockErrorRateRecord
*
85
GetSNRToBlockErrorRateRecord
(
double
SNR, uint8_t modulation);
92
void
LoadTraces
();
96
void
LoadDefaultTraces
();
100
void
ReLoadTraces
();
105
void
ActivateLoss
(
bool
loss);
106
107
private
:
109
void
ClearRecords
();
110
bool
m_activateLoss
;
111
std::string
m_traceFilePath
;
112
113
std::vector<SNRToBlockErrorRateRecord*>*
m_recordModulation
[7];
114
};
115
}
// namespace ns3
116
117
#endif
/* SNR_TO_BLOCK_ERROR_RATE_MANAGER_H */
ns3::SNRToBlockErrorRateManager
This class handles the SNR to BlcER traces.
Definition:
snr-to-block-error-rate-manager.h:57
ns3::SNRToBlockErrorRateManager::ActivateLoss
void ActivateLoss(bool loss)
If activate loss is called with false, all the returned BlcER will be 0 (no losses)
Definition:
snr-to-block-error-rate-manager.cc:76
ns3::SNRToBlockErrorRateManager::ClearRecords
void ClearRecords()
Clear records function.
Definition:
snr-to-block-error-rate-manager.cc:58
ns3::SNRToBlockErrorRateManager::SNRToBlockErrorRateManager
SNRToBlockErrorRateManager()
Definition:
snr-to-block-error-rate-manager.cc:38
ns3::SNRToBlockErrorRateManager::m_activateLoss
bool m_activateLoss
activate loss
Definition:
snr-to-block-error-rate-manager.h:110
ns3::SNRToBlockErrorRateManager::ReLoadTraces
void ReLoadTraces()
Reloads the trace.
Definition:
snr-to-block-error-rate-manager.cc:219
ns3::SNRToBlockErrorRateManager::LoadTraces
void LoadTraces()
Loads the traces form the repository specified in the constructor or set by SetTraceFilePath function...
Definition:
snr-to-block-error-rate-manager.cc:82
ns3::SNRToBlockErrorRateManager::GetSNRToBlockErrorRateRecord
SNRToBlockErrorRateRecord * GetSNRToBlockErrorRateRecord(double SNR, uint8_t modulation)
returns a record of type SNRToBlockErrorRateRecord corresponding to a given modulation and SNR value
Definition:
snr-to-block-error-rate-manager.cc:311
ns3::SNRToBlockErrorRateManager::GetTraceFilePath
std::string GetTraceFilePath()
Definition:
snr-to-block-error-rate-manager.cc:268
ns3::SNRToBlockErrorRateManager::m_traceFilePath
std::string m_traceFilePath
trace file path
Definition:
snr-to-block-error-rate-manager.h:111
ns3::SNRToBlockErrorRateManager::GetBlockErrorRate
double GetBlockErrorRate(double SNR, uint8_t modulation)
returns the Block Error Rate for a given modulation and SNR value
Definition:
snr-to-block-error-rate-manager.cc:274
ns3::SNRToBlockErrorRateManager::SetTraceFilePath
void SetTraceFilePath(char *traceFilePath)
Set the path of the repository containing the traces.
Definition:
snr-to-block-error-rate-manager.cc:262
ns3::SNRToBlockErrorRateManager::m_recordModulation
std::vector< SNRToBlockErrorRateRecord * > * m_recordModulation[7]
record modulation
Definition:
snr-to-block-error-rate-manager.h:113
ns3::SNRToBlockErrorRateManager::LoadDefaultTraces
void LoadDefaultTraces()
Loads the default traces from default-traces.h file.
Definition:
snr-to-block-error-rate-manager.cc:122
ns3::SNRToBlockErrorRateManager::~SNRToBlockErrorRateManager
~SNRToBlockErrorRateManager()
Definition:
snr-to-block-error-rate-manager.cc:48
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
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-manager.h
Generated on Sun Mar 3 2024 17:11:14 for ns-3 by
1.9.1