#include <Ieee80211BerTableErrorModel.h>
|
| | Ieee80211BerTableErrorModel () |
| |
| virtual | ~Ieee80211BerTableErrorModel () |
| |
| virtual std::ostream & | printToStream (std::ostream &stream, int level, int evFlags=0) 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 | printToString () const |
| |
| virtual std::string | printToString (int level, int evFlags=0) const |
| |
| virtual std::string | getInfoStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDetailStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getDebugStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getTraceStringRepresentation (int evFlags=0) const |
| |
| virtual std::string | getCompleteStringRepresentation (int evFlags=0) const |
| |
|
| enum | CorruptionMode {
CorruptionMode::CM_UNDEFINED = -1,
CorruptionMode::CM_PACKET,
CorruptionMode::CM_CHUNK,
CorruptionMode::CM_BYTE,
CorruptionMode::CM_BIT
} |
| |
| enum | SnirMode { SnirMode::SM_UNDEFINED = -1,
SnirMode::SM_MIN,
SnirMode::SM_MEAN
} |
| |
| enum | PrintLevel {
PRINT_LEVEL_TRACE,
PRINT_LEVEL_DEBUG,
PRINT_LEVEL_DETAIL,
PRINT_LEVEL_INFO,
PRINT_LEVEL_COMPLETE = INT_MIN
} |
| |
| enum | PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0),
PRINT_FLAG_MULTILINE = (1 << 1)
} |
| |
◆ Ieee80211BerTableErrorModel()
| inet::physicallayer::Ieee80211BerTableErrorModel::Ieee80211BerTableErrorModel |
( |
| ) |
|
◆ ~Ieee80211BerTableErrorModel()
| inet::physicallayer::Ieee80211BerTableErrorModel::~Ieee80211BerTableErrorModel |
( |
| ) |
|
|
virtual |
◆ computeBitErrorRate()
◆ computePacketErrorRate()
Returns the packet error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
59 const ITransmission *transmission = snir->getReception()->getTransmission();
60 const FlatTransmissionBase *flatTransmission = check_and_cast<const FlatTransmissionBase *>(transmission);
61 double bitrate = flatTransmission->getBitrate().get();
62 b dataLength = flatTransmission->getDataLength();
◆ computeSymbolErrorRate()
◆ initialize()
| void inet::physicallayer::Ieee80211BerTableErrorModel::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
Reimplemented from inet::physicallayer::ErrorModelBase.
33 const char *fname = par(
"berTableFile");
35 throw cRuntimeError(
"BER file parameter is mandatory");
38 const char *opModeString = par(
"opMode");
39 if (!strcmp(
"b", opModeString))
41 else if (!strcmp(
"g(erp)", opModeString))
43 else if (!strcmp(
"g(mixed)", opModeString))
45 else if (!strcmp(
"a", opModeString))
47 else if (!strcmp(
"p", opModeString))
50 throw cRuntimeError(
"Unknown opMode");
◆ printToStream()
| virtual std::ostream& inet::physicallayer::Ieee80211BerTableErrorModel::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
inlineoverridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
31 {
return stream <<
"Ieee80211BerTableErrorModel"; }
◆ berTableFile
| BerParseFile* inet::physicallayer::Ieee80211BerTableErrorModel::berTableFile |
|
protected |
The documentation for this class was generated from the following files: