Implements the StochasticErrorModel model, see the NED file for details.
More...
#include <StochasticErrorModel.h>
|
| StochasticErrorModel () |
|
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 |
|
Implements the StochasticErrorModel model, see the NED file for details.
inet::physicallayer::StochasticErrorModel::StochasticErrorModel |
( |
| ) |
|
double bitErrorRate
Definition: StochasticErrorModel.h:34
double packetErrorRate
Definition: StochasticErrorModel.h:33
#define NaN
Definition: INETMath.h:103
double symbolErrorRate
Definition: StochasticErrorModel.h:35
Returns the bit error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
Referenced by computePacketErrorRate().
83 Enter_Method_Silent();
93 throw cRuntimeError(
"Not yet implemented");
double bitErrorRate
Definition: StochasticErrorModel.h:34
Returns the packet error rate based on SNIR, modulation, FEC encoding and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
55 Enter_Method_Silent();
56 const IReception *reception = snir->getReception();
58 double factor = reception->getDuration(part) / reception->getDuration();
62 const FlatTransmissionBase *flatTransmission = check_and_cast<
const FlatTransmissionBase *>(reception->getTransmission());
64 double headerSuccessRate = pow(1.0 - bitErrorRate, flatTransmission->getHeaderBitLength());
65 double dataSuccessRate = pow(1.0 - bitErrorRate, flatTransmission->getDataBitLength());
68 return 1.0 - headerSuccessRate * dataSuccessRate;
72 return 1.0 - headerSuccessRate;
74 return 1.0 - dataSuccessRate;
double bitErrorRate
Definition: StochasticErrorModel.h:34
static const char * getSignalPartName(SignalPart signalPart)
Returns the name of the provided signal part.
Definition: IRadioSignal.cc:33
double packetErrorRate
Definition: StochasticErrorModel.h:33
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 chara...
Definition: StochasticErrorModel.cc:81
Definition: IRadioSignal.h:39
Definition: IRadioSignal.h:41
Definition: IRadioSignal.h:42
Definition: IRadioSignal.h:40
Returns the symbol error rate based on SNIR, modulation, and any other physical layer characteristics.
Implements inet::physicallayer::IErrorModel.
99 Enter_Method_Silent();
double symbolErrorRate
Definition: StochasticErrorModel.h:35
void inet::physicallayer::StochasticErrorModel::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
double bitErrorRate
Definition: StochasticErrorModel.h:34
double packetErrorRate
Definition: StochasticErrorModel.h:33
Local initializations.
Definition: InitStages.h:35
double symbolErrorRate
Definition: StochasticErrorModel.h:35
std::ostream & inet::physicallayer::StochasticErrorModel::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level |
|
) |
| const |
|
overridevirtual |
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.
46 stream <<
"StochasticErrorModel" double bitErrorRate
Definition: StochasticErrorModel.h:34
double packetErrorRate
Definition: StochasticErrorModel.h:33
Definition: IPrintableObject.h:34
double symbolErrorRate
Definition: StochasticErrorModel.h:35
double inet::physicallayer::StochasticErrorModel::bitErrorRate |
|
protected |
double inet::physicallayer::StochasticErrorModel::packetErrorRate |
|
protected |
double inet::physicallayer::StochasticErrorModel::symbolErrorRate |
|
protected |
The documentation for this class was generated from the following files: