#include <Ieee80211BerTableErrorModel.h>
|
| | Ieee80211BerTableErrorModel () |
| |
| virtual | ~Ieee80211BerTableErrorModel () |
| |
| virtual std::ostream & | printToStream (std::ostream &stream, int level) const override |
| | Prints this object to the provided output stream. More...
|
| |
| virtual double | computePacketErrorRate (const ISNIR *snir, IRadioSignal::SignalPart part) const override |
| | Returns the packet error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics. More...
|
| |
| virtual double | computeBitErrorRate (const ISNIR *snir, IRadioSignal::SignalPart part) const override |
| | Returns the bit error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics. More...
|
| |
| virtual double | computeSymbolErrorRate (const ISNIR *snir, IRadioSignal::SignalPart part) const override |
| | Returns the symbol error rate based on SNIR, modulation, and any other physical layer characteristics. More...
|
| |
| virtual | ~IPrintableObject () |
| |
| virtual std::string | getInfoStringRepresentation () const |
| |
| virtual std::string | getDetailStringRepresentation () const |
| |
| virtual std::string | getDebugStringRepresentation () const |
| |
| virtual std::string | getTraceStringRepresentation () const |
| |
| virtual std::string | getCompleteStringRepresentation () const |
| |
| inet::physicallayer::Ieee80211BerTableErrorModel::Ieee80211BerTableErrorModel |
( |
| ) |
|
BerParseFile * berTableFile
Definition: Ieee80211BerTableErrorModel.h:32
| inet::physicallayer::Ieee80211BerTableErrorModel::~Ieee80211BerTableErrorModel |
( |
| ) |
|
|
virtual |
BerParseFile * berTableFile
Definition: Ieee80211BerTableErrorModel.h:32
Returns the bit error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
78 Enter_Method_Silent();
#define NaN
Definition: INETMath.h:103
Returns the packet error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
67 Enter_Method_Silent();
68 const ITransmission *transmission = snir->getReception()->getTransmission();
69 const FlatTransmissionBase *flatTransmission = check_and_cast<
const FlatTransmissionBase *>(transmission);
70 double bitrate = flatTransmission->getBitrate().get();
71 double minSNIR = snir->getMin();
72 int payloadBitLength = flatTransmission->getDataBitLength();
BerParseFile * berTableFile
Definition: Ieee80211BerTableErrorModel.h:32
double getPer(double speed, double tsnr, int tlen)
Definition: BerParseFile.cc:88
Returns the symbol error rate based on SNIR, modulation, and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
84 Enter_Method_Silent();
#define NaN
Definition: INETMath.h:103
| void inet::physicallayer::Ieee80211BerTableErrorModel::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
42 const char *fname = par(
"berTableFile");
44 throw cRuntimeError(
"BER file parameter is mandatory");
47 const char *opModeString = par(
"opMode");
48 if (!strcmp(
"b", opModeString))
50 else if (!strcmp(
"g(erp)", opModeString))
52 else if (!strcmp(
"g(mixed)", opModeString))
54 else if (!strcmp(
"a", opModeString))
56 else if (!strcmp(
"p", opModeString))
59 throw cRuntimeError(
"Unknown opMode");
BerParseFile * berTableFile
Definition: Ieee80211BerTableErrorModel.h:32
void parseFile(const char *filename)
Definition: BerParseFile.cc:211
Local initializations.
Definition: InitStages.h:35
| virtual std::ostream& inet::physicallayer::Ieee80211BerTableErrorModel::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level |
|
) |
| const |
|
inlineoverridevirtual |
Prints this object to the provided output stream.
Function calls to operator<< with pointers or references either const or not are all forwarded to this function.
Reimplemented from inet::physicallayer::IPrintableObject.
41 {
return stream <<
"Ieee80211BerTableErrorModel"; }
| BerParseFile* inet::physicallayer::Ieee80211BerTableErrorModel::berTableFile |
|
protected |
The documentation for this class was generated from the following files: