INET Framework for OMNeT++/OMNEST
inet::physicallayer::StochasticLayeredErrorModel Class Reference

#include <StochasticLayeredErrorModel.h>

Inheritance diagram for inet::physicallayer::StochasticLayeredErrorModel:
inet::physicallayer::LayeredErrorModelBase inet::physicallayer::ILayeredErrorModel inet::IPrintableObject

Public Member Functions

 StochasticLayeredErrorModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual const IReceptionPacketModelcomputePacketModel (const LayeredTransmission *transmission, const ISnir *snir) const override
 Computes the packet domain representation at the receiver using a simplified model for the underlying domains. More...
 
virtual const IReceptionBitModelcomputeBitModel (const LayeredTransmission *transmission, const ISnir *snir) const override
 Computes the bit domain representation at the receiver using a simplified model for the underlying domains. More...
 
virtual const IReceptionSymbolModelcomputeSymbolModel (const LayeredTransmission *transmission, const ISnir *snir) const override
 Computes the symbol domain representation at the receiver using a simplified model for the underlying domains. More...
 
virtual const IReceptionSampleModelcomputeSampleModel (const LayeredTransmission *transmission, const ISnir *snir) const override
 Computes the sample domain representation at the receiver using a simplified model for the underlying domains. More...
 
- Public Member Functions inherited from inet::IPrintableObject
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
 

Protected Member Functions

virtual void initialize (int stage) override
 
- Protected Member Functions inherited from inet::physicallayer::LayeredErrorModelBase
virtual const IReceptionPacketModelcomputePacketModel (const LayeredTransmission *transmission, double packetErrorRate) const
 
virtual const IReceptionBitModelcomputeBitModel (const LayeredTransmission *transmission, double bitErrorRate) const
 
virtual const IReceptionSymbolModelcomputeSymbolModel (const LayeredTransmission *transmission, double symbolErrorRate) const
 

Protected Attributes

double packetErrorRate
 
double bitErrorRate
 
double symbolErrorRate
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
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) }
 

Constructor & Destructor Documentation

◆ StochasticLayeredErrorModel()

inet::physicallayer::StochasticLayeredErrorModel::StochasticLayeredErrorModel ( )
22  :
26 {
27 }

Member Function Documentation

◆ computeBitModel()

const IReceptionBitModel * inet::physicallayer::StochasticLayeredErrorModel::computeBitModel ( const LayeredTransmission transmission,
const ISnir snir 
) const
overridevirtual

Computes the bit domain representation at the receiver using a simplified model for the underlying domains.

This result includes all potential errors that were not corrected by the underlying domains.

Implements inet::physicallayer::ILayeredErrorModel.

54 {
56 }

◆ computePacketModel()

const IReceptionPacketModel * inet::physicallayer::StochasticLayeredErrorModel::computePacketModel ( const LayeredTransmission transmission,
const ISnir snir 
) const
overridevirtual

Computes the packet domain representation at the receiver using a simplified model for the underlying domains.

This result includes all potential errors that were not corrected by the underlying domains.

Implements inet::physicallayer::ILayeredErrorModel.

49 {
50  throw cRuntimeError("Not yet implemented");
51 }

◆ computeSampleModel()

const IReceptionSampleModel * inet::physicallayer::StochasticLayeredErrorModel::computeSampleModel ( const LayeredTransmission transmission,
const ISnir snir 
) const
overridevirtual

Computes the sample domain representation at the receiver using a simplified model for the underlying domains.

This result includes all potential errors that were not corrected by the underlying domains.

Implements inet::physicallayer::ILayeredErrorModel.

64 {
65  throw cRuntimeError("Not yet implemented");
66 }

◆ computeSymbolModel()

const IReceptionSymbolModel * inet::physicallayer::StochasticLayeredErrorModel::computeSymbolModel ( const LayeredTransmission transmission,
const ISnir snir 
) const
overridevirtual

Computes the symbol domain representation at the receiver using a simplified model for the underlying domains.

This result includes all potential errors that were not corrected by the underlying domains.

Implements inet::physicallayer::ILayeredErrorModel.

59 {
61 }

◆ initialize()

void inet::physicallayer::StochasticLayeredErrorModel::initialize ( int  stage)
overrideprotectedvirtual
30 {
31  if (stage == INITSTAGE_LOCAL) {
32  packetErrorRate = par("packetErrorRate");
33  bitErrorRate = par("bitErrorRate");
34  symbolErrorRate = par("symbolErrorRate");
35  }
36 }

◆ printToStream()

std::ostream & inet::physicallayer::StochasticLayeredErrorModel::printToStream ( std::ostream &  stream,
int  level,
int  evFlags = 0 
) const
overridevirtual

Prints this object to the provided output stream.

Reimplemented from inet::IPrintableObject.

39 {
40  stream << "StochasticLayeredErrorModel";
41  if (level <= PRINT_LEVEL_TRACE)
42  stream << "packetErrorRate = " << packetErrorRate
43  << "bitErrorRate = " << bitErrorRate
44  << "symbolErrorRate = " << symbolErrorRate;
45  return stream;
46 }

Member Data Documentation

◆ bitErrorRate

double inet::physicallayer::StochasticLayeredErrorModel::bitErrorRate
protected

◆ packetErrorRate

double inet::physicallayer::StochasticLayeredErrorModel::packetErrorRate
protected

Referenced by initialize(), and printToStream().

◆ symbolErrorRate

double inet::physicallayer::StochasticLayeredErrorModel::symbolErrorRate
protected

The documentation for this class was generated from the following files:
inet::physicallayer::StochasticLayeredErrorModel::bitErrorRate
double bitErrorRate
Definition: StochasticLayeredErrorModel.h:21
inet::physicallayer::StochasticLayeredErrorModel::packetErrorRate
double packetErrorRate
Definition: StochasticLayeredErrorModel.h:20
inet::physicallayer::LayeredErrorModelBase::computeBitModel
virtual const IReceptionBitModel * computeBitModel(const LayeredTransmission *transmission, double bitErrorRate) const
Definition: LayeredErrorModelBase.cc:32
NaN
#define NaN
Definition: INETMath.h:91
inet::INITSTAGE_LOCAL
INET_API InitStage INITSTAGE_LOCAL
Initialization of local state that don't use or affect other modules includes:
inet::IPrintableObject::PRINT_LEVEL_TRACE
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
inet::physicallayer::LayeredErrorModelBase::computeSymbolModel
virtual const IReceptionSymbolModel * computeSymbolModel(const LayeredTransmission *transmission, double symbolErrorRate) const
Definition: LayeredErrorModelBase.cc:47
inet::physicallayer::StochasticLayeredErrorModel::symbolErrorRate
double symbolErrorRate
Definition: StochasticLayeredErrorModel.h:22