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::physicallayer::IPrintableObject

Public Member Functions

 StochasticLayeredErrorModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) 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::physicallayer::IPrintableObject
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
 

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::physicallayer::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 

Constructor & Destructor Documentation

inet::physicallayer::StochasticLayeredErrorModel::StochasticLayeredErrorModel ( )
32  :
36 {
37 }
double packetErrorRate
Definition: StochasticLayeredErrorModel.h:30
#define NaN
Definition: INETMath.h:103
double bitErrorRate
Definition: StochasticLayeredErrorModel.h:31
double symbolErrorRate
Definition: StochasticLayeredErrorModel.h:32

Member Function Documentation

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.

64 {
66 }
virtual const IReceptionBitModel * computeBitModel(const LayeredTransmission *transmission, double bitErrorRate) const
Definition: LayeredErrorModelBase.cc:44
double bitErrorRate
Definition: StochasticLayeredErrorModel.h:31
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.

59 {
60  throw cRuntimeError("Not yet implemented");
61 }
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.

74 {
75  throw cRuntimeError("Not yet implemented");
76 }
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.

69 {
71 }
virtual const IReceptionSymbolModel * computeSymbolModel(const LayeredTransmission *transmission, double symbolErrorRate) const
Definition: LayeredErrorModelBase.cc:59
double symbolErrorRate
Definition: StochasticLayeredErrorModel.h:32
void inet::physicallayer::StochasticLayeredErrorModel::initialize ( int  stage)
overrideprotectedvirtual
40 {
41  if (stage == INITSTAGE_LOCAL) {
42  packetErrorRate = par("packetErrorRate");
43  bitErrorRate = par("bitErrorRate");
44  symbolErrorRate = par("symbolErrorRate");
45  }
46 }
double packetErrorRate
Definition: StochasticLayeredErrorModel.h:30
Local initializations.
Definition: InitStages.h:35
double bitErrorRate
Definition: StochasticLayeredErrorModel.h:31
double symbolErrorRate
Definition: StochasticLayeredErrorModel.h:32
std::ostream & inet::physicallayer::StochasticLayeredErrorModel::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.

49 {
50  stream << "StochasticLayeredErrorModel";
51  if (level <= PRINT_LEVEL_TRACE)
52  stream << "packetErrorRate = " << packetErrorRate
53  << "bitErrorRate = " << bitErrorRate
54  << "symbolErrorRate = " << symbolErrorRate;
55  return stream;
56 }
double packetErrorRate
Definition: StochasticLayeredErrorModel.h:30
double bitErrorRate
Definition: StochasticLayeredErrorModel.h:31
double symbolErrorRate
Definition: StochasticLayeredErrorModel.h:32

Member Data Documentation

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

Referenced by initialize(), and printToStream().

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

The documentation for this class was generated from the following files: