|
ns-3
|
This class handles the SNR to BlcER traces. A path to a repository containing trace files should be provided. If no repository is provided the traces form default-traces.h will be loaded. A valid repository should contain 7 files, one for each modulation and coding scheme. The names of the files should respect the following format: modulation0.txt for modulation 0, modulation1.txt for modulation 1 and so on... The files format should be as follows SNR_value(1) BER(1) Blc_ER(1) STANDARD_DEVIATION(1) CONFIDENCE_INTERVAL1(1) CONFIDENCE_INTERVAL2(1) SNR_value(2) BER(2) Blc_ER(2) STANDARD_DEVIATION(2) CONFIDENCE_INTERVAL1(2) CONFIDENCE_INTERVAL2(2) ... ... ... ... ... ... ... ... ... ... ... ... SNR_value(n) BER(n) Blc_ER(n) STANDARD_DEVIATION(n) CONFIDENCE_INTERVAL1(n) CONFIDENCE_INTERVAL2(n) More...
#include <snr-to-block-error-rate-manager.h>
Public Member Functions | |
| void | SetTraceFilePath (char *traceFilePath) |
| Set the path of the repository containing the traces. | |
| std::string | GetTraceFilePath (void) |
| double | GetBlockErrorRate (double SNR, uint8_t modulation) |
| returns the Block Error Rate for a given modulation and SNR value | |
| SNRToBlockErrorRateRecord * | GetSNRToBlockErrorRateRecord (double SNR, uint8_t modulation) |
| returns a record of type SNRToBlockErrorRateRecord corresponding to a given modulation and SNR value | |
| void | LoadTraces (void) |
| Loads the traces form the repository specified in the constructor or setted by SetTraceFilePath function. If no repository is provided, default traces will be loaded from default-traces.h file. | |
| void | LoadDefaultTraces (void) |
| Loads the default traces from default-traces.h file. | |
| void | ReLoadTraces (void) |
| Reloads the trace. | |
| void | ActivateLoss (bool loss) |
| If activate loss is called with false, all the returned BlcER will be 0 (no losses) | |
This class handles the SNR to BlcER traces. A path to a repository containing trace files should be provided. If no repository is provided the traces form default-traces.h will be loaded. A valid repository should contain 7 files, one for each modulation and coding scheme. The names of the files should respect the following format: modulation0.txt for modulation 0, modulation1.txt for modulation 1 and so on... The files format should be as follows SNR_value(1) BER(1) Blc_ER(1) STANDARD_DEVIATION(1) CONFIDENCE_INTERVAL1(1) CONFIDENCE_INTERVAL2(1) SNR_value(2) BER(2) Blc_ER(2) STANDARD_DEVIATION(2) CONFIDENCE_INTERVAL1(2) CONFIDENCE_INTERVAL2(2) ... ... ... ... ... ... ... ... ... ... ... ... SNR_value(n) BER(n) Blc_ER(n) STANDARD_DEVIATION(n) CONFIDENCE_INTERVAL1(n) CONFIDENCE_INTERVAL2(n)
| double ns3::SNRToBlockErrorRateManager::GetBlockErrorRate | ( | double | SNR, |
| uint8_t | modulation | ||
| ) |
returns the Block Error Rate for a given modulation and SNR value
| SNR | the SNR value |
| modulation | one of the seven MCS |
| SNRToBlockErrorRateRecord * ns3::SNRToBlockErrorRateManager::GetSNRToBlockErrorRateRecord | ( | double | SNR, |
| uint8_t | modulation | ||
| ) |
returns a record of type SNRToBlockErrorRateRecord corresponding to a given modulation and SNR value
| SNR | the SNR value |
| modulation | one of the seven MCS |
Referenced by ns3::SimpleOfdmWimaxPhy::StartReceive().
| std::string ns3::SNRToBlockErrorRateManager::GetTraceFilePath | ( | void | ) |
| void ns3::SNRToBlockErrorRateManager::SetTraceFilePath | ( | char * | traceFilePath | ) |
Set the path of the repository containing the traces.
| traceFilePath | the path to the repository. |
Referenced by ns3::SimpleOfdmWimaxPhy::SetSNRToBlockErrorRateTracesPath().