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

#include <LayeredReceptionResult.h>

Inheritance diagram for inet::physicallayer::LayeredReceptionResult:
inet::physicallayer::ReceptionResult inet::physicallayer::IReceptionResult inet::IPrintableObject

Public Member Functions

 LayeredReceptionResult (const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const IReceptionPacketModel *packetModel, const IReceptionBitModel *bitModel, const IReceptionSymbolModel *symbolModel, const IReceptionSampleModel *sampleModel, const IReceptionAnalogModel *analogModel)
 
virtual ~LayeredReceptionResult ()
 
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 IReceptionPacketModelgetPacketModel () const
 
virtual const IReceptionBitModelgetBitModel () const
 
virtual const IReceptionSymbolModelgetSymbolModel () const
 
virtual const IReceptionSampleModelgetSampleModel () const
 
virtual const IReceptionAnalogModelgetAnalogModel () const
 
virtual const PacketgetPacket () const override
 Returns the packet corresponding to this reception. More...
 
- Public Member Functions inherited from inet::physicallayer::ReceptionResult
 ReceptionResult (const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const Packet *packet)
 
virtual ~ReceptionResult ()
 
virtual const IReceptiongetReception () const override
 Returns the corresponding reception that also specifies the receiver and the received transmission. More...
 
virtual const std::vector< const IReceptionDecision * > * getDecisions () const override
 Returns the reception decisions made by the receiver in the order of received signal parts. 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 Attributes

const IReceptionPacketModelpacketModel
 
const IReceptionBitModelbitModel
 
const IReceptionSymbolModelsymbolModel
 
const IReceptionSampleModelsampleModel
 
const IReceptionAnalogModelanalogModel
 
- Protected Attributes inherited from inet::physicallayer::ReceptionResult
const IReceptionreception
 
const std::vector< const IReceptionDecision * > * decisions
 
const Packetpacket
 

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

◆ LayeredReceptionResult()

inet::physicallayer::LayeredReceptionResult::LayeredReceptionResult ( const IReception reception,
const std::vector< const IReceptionDecision * > *  decisions,
const IReceptionPacketModel packetModel,
const IReceptionBitModel bitModel,
const IReceptionSymbolModel symbolModel,
const IReceptionSampleModel sampleModel,
const IReceptionAnalogModel analogModel 
)

◆ ~LayeredReceptionResult()

inet::physicallayer::LayeredReceptionResult::~LayeredReceptionResult ( )
virtual
24 {
25  delete packetModel->getPacket();
26  delete packetModel;
27  delete bitModel;
28  delete symbolModel;
29  delete sampleModel;
30  delete analogModel;
31 }

Member Function Documentation

◆ getAnalogModel()

virtual const IReceptionAnalogModel* inet::physicallayer::LayeredReceptionResult::getAnalogModel ( ) const
inlinevirtual
41 { return analogModel; }

◆ getBitModel()

virtual const IReceptionBitModel* inet::physicallayer::LayeredReceptionResult::getBitModel ( ) const
inlinevirtual
38 { return bitModel; }

◆ getPacket()

const Packet * inet::physicallayer::LayeredReceptionResult::getPacket ( ) const
overridevirtual

Returns the packet corresponding to this reception.

This function never returns nullptr.

Reimplemented from inet::physicallayer::ReceptionResult.

46 {
47  return packetModel->getPacket();
48 }

◆ getPacketModel()

virtual const IReceptionPacketModel* inet::physicallayer::LayeredReceptionResult::getPacketModel ( ) const
inlinevirtual
37 { return packetModel; }

◆ getSampleModel()

virtual const IReceptionSampleModel* inet::physicallayer::LayeredReceptionResult::getSampleModel ( ) const
inlinevirtual
40 { return sampleModel; }

◆ getSymbolModel()

virtual const IReceptionSymbolModel* inet::physicallayer::LayeredReceptionResult::getSymbolModel ( ) const
inlinevirtual
39 { return symbolModel; }

◆ printToStream()

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

Prints this object to the provided output stream.

Reimplemented from inet::physicallayer::ReceptionResult.

34 {
35  stream << "LayeredReceptionResult";
36  if (level <= PRINT_LEVEL_TRACE)
42  return stream;
43 }

Member Data Documentation

◆ analogModel

const IReceptionAnalogModel* inet::physicallayer::LayeredReceptionResult::analogModel
protected

◆ bitModel

const IReceptionBitModel* inet::physicallayer::LayeredReceptionResult::bitModel
protected

◆ packetModel

const IReceptionPacketModel* inet::physicallayer::LayeredReceptionResult::packetModel
protected

◆ sampleModel

const IReceptionSampleModel* inet::physicallayer::LayeredReceptionResult::sampleModel
protected

◆ symbolModel

const IReceptionSymbolModel* inet::physicallayer::LayeredReceptionResult::symbolModel
protected

The documentation for this class was generated from the following files:
inet::physicallayer::ISignalPacketModel::getPacket
virtual const Packet * getPacket() const =0
inet::physicallayer::LayeredReceptionResult::analogModel
const IReceptionAnalogModel * analogModel
Definition: LayeredReceptionResult.h:29
inet::physicallayer::ReceptionResult::reception
const IReception * reception
Definition: ReceptionResult.h:20
inet::physicallayer::LayeredReceptionResult::sampleModel
const IReceptionSampleModel * sampleModel
Definition: LayeredReceptionResult.h:28
inet::physicallayer::ReceptionResult::ReceptionResult
ReceptionResult(const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const Packet *packet)
Definition: ReceptionResult.cc:13
inet::physicallayer::LayeredReceptionResult::bitModel
const IReceptionBitModel * bitModel
Definition: LayeredReceptionResult.h:26
inet::printFieldToString
std::string printFieldToString(const IPrintableObject *object, int level, int evFlags=0)
Definition: IPrintableObject.h:98
inet::physicallayer::ReceptionResult::decisions
const std::vector< const IReceptionDecision * > * decisions
Definition: ReceptionResult.h:21
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::physicallayer::LayeredReceptionResult::packetModel
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:25
inet::IPrintableObject::PRINT_LEVEL_TRACE
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
inet::evFlags
int evFlags
Definition: INETDefs.cc:12
inet::physicallayer::LayeredReceptionResult::symbolModel
const IReceptionSymbolModel * symbolModel
Definition: LayeredReceptionResult.h:27