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

Public Member Functions

 LayeredReceptionResult (const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const ReceptionIndication *indication, 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) 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 cPacket * getPhyFrame () const override
 Returns the PHY frame corresponding to the reception. More...
 
virtual const cPacket * getMacFrame () const override
 Returns the MAC frame corresponding to this reception. More...
 
- Public Member Functions inherited from inet::physicallayer::ReceptionResult
 ReceptionResult (const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const ReceptionIndication *indication)
 
 ~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...
 
virtual const ReceptionIndicationgetIndication () const override
 Returns the physical properties of the reception. 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 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 ReceptionIndicationindication
 
const cPacket * macFrame
 

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::LayeredReceptionResult::LayeredReceptionResult ( const IReception reception,
const std::vector< const IReceptionDecision * > *  decisions,
const ReceptionIndication indication,
const IReceptionPacketModel packetModel,
const IReceptionBitModel bitModel,
const IReceptionSymbolModel symbolModel,
const IReceptionSampleModel sampleModel,
const IReceptionAnalogModel analogModel 
)
24  :
31 {
32 }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
const IReceptionSymbolModel * symbolModel
Definition: LayeredReceptionResult.h:38
const IReception * reception
Definition: ReceptionResult.h:31
const IReceptionBitModel * bitModel
Definition: LayeredReceptionResult.h:37
const IReceptionAnalogModel * analogModel
Definition: LayeredReceptionResult.h:40
const std::vector< const IReceptionDecision * > * decisions
Definition: ReceptionResult.h:32
const ReceptionIndication * indication
Definition: ReceptionResult.h:33
const IReceptionSampleModel * sampleModel
Definition: LayeredReceptionResult.h:39
ReceptionResult(const IReception *reception, const std::vector< const IReceptionDecision * > *decisions, const ReceptionIndication *indication)
Definition: ReceptionResult.cc:24
inet::physicallayer::LayeredReceptionResult::~LayeredReceptionResult ( )
virtual
35 {
36  delete packetModel->getPacket();
37  delete packetModel;
38  delete bitModel;
39  delete symbolModel;
40  delete sampleModel;
41  delete analogModel;
42 }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
const IReceptionSymbolModel * symbolModel
Definition: LayeredReceptionResult.h:38
virtual const cPacket * getPacket() const =0
const IReceptionBitModel * bitModel
Definition: LayeredReceptionResult.h:37
const IReceptionAnalogModel * analogModel
Definition: LayeredReceptionResult.h:40
const IReceptionSampleModel * sampleModel
Definition: LayeredReceptionResult.h:39

Member Function Documentation

virtual const IReceptionAnalogModel* inet::physicallayer::LayeredReceptionResult::getAnalogModel ( ) const
inlinevirtual
52 { return analogModel; }
const IReceptionAnalogModel * analogModel
Definition: LayeredReceptionResult.h:40
virtual const IReceptionBitModel* inet::physicallayer::LayeredReceptionResult::getBitModel ( ) const
inlinevirtual
49 { return bitModel; }
const IReceptionBitModel * bitModel
Definition: LayeredReceptionResult.h:37
const cPacket * inet::physicallayer::LayeredReceptionResult::getMacFrame ( ) const
overridevirtual

Returns the MAC frame corresponding to this reception.

This function may return nullptr.

Reimplemented from inet::physicallayer::ReceptionResult.

62 {
63  return packetModel->getPacket()->getEncapsulatedPacket();
64 }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
virtual const cPacket * getPacket() const =0
virtual const IReceptionPacketModel* inet::physicallayer::LayeredReceptionResult::getPacketModel ( ) const
inlinevirtual
48 { return packetModel; }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
const cPacket * inet::physicallayer::LayeredReceptionResult::getPhyFrame ( ) const
overridevirtual

Returns the PHY frame corresponding to the reception.

This function may return nullptr.

Reimplemented from inet::physicallayer::ReceptionResult.

57 {
58  return packetModel->getPacket();
59 }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
virtual const cPacket * getPacket() const =0
virtual const IReceptionSampleModel* inet::physicallayer::LayeredReceptionResult::getSampleModel ( ) const
inlinevirtual
51 { return sampleModel; }
const IReceptionSampleModel * sampleModel
Definition: LayeredReceptionResult.h:39
virtual const IReceptionSymbolModel* inet::physicallayer::LayeredReceptionResult::getSymbolModel ( ) const
inlinevirtual
50 { return symbolModel; }
const IReceptionSymbolModel * symbolModel
Definition: LayeredReceptionResult.h:38
std::ostream & inet::physicallayer::LayeredReceptionResult::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::ReceptionResult.

45 {
46  stream << "LayeredReceptionResult";
47  if (level <= PRINT_LEVEL_TRACE)
48  stream << ", packetModel = " << printObjectToString(packetModel, level + 1)
49  << ", bitModel = " << printObjectToString(bitModel, level + 1)
50  << ", symbolModel = " << printObjectToString(symbolModel, level + 1)
51  << ", sampleModel = " << printObjectToString(sampleModel, level + 1)
52  << ", analogModel = " << printObjectToString(analogModel, level + 1);
53  return stream;
54 }
const IReceptionPacketModel * packetModel
Definition: LayeredReceptionResult.h:36
const IReceptionSymbolModel * symbolModel
Definition: LayeredReceptionResult.h:38
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const IReceptionBitModel * bitModel
Definition: LayeredReceptionResult.h:37
const IReceptionAnalogModel * analogModel
Definition: LayeredReceptionResult.h:40
const IReceptionSampleModel * sampleModel
Definition: LayeredReceptionResult.h:39

Member Data Documentation

const IReceptionAnalogModel* inet::physicallayer::LayeredReceptionResult::analogModel
protected
const IReceptionBitModel* inet::physicallayer::LayeredReceptionResult::bitModel
protected
const IReceptionPacketModel* inet::physicallayer::LayeredReceptionResult::packetModel
protected
const IReceptionSampleModel* inet::physicallayer::LayeredReceptionResult::sampleModel
protected
const IReceptionSymbolModel* inet::physicallayer::LayeredReceptionResult::symbolModel
protected

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