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

#include <SignalPacketModel.h>

Inheritance diagram for inet::physicallayer::ReceptionPacketModel:
inet::physicallayer::SignalPacketModel inet::physicallayer::IReceptionPacketModel inet::physicallayer::ISignalPacketModel inet::physicallayer::ISignalPacketModel inet::physicallayer::IPrintableObject inet::physicallayer::IPrintableObject

Public Member Functions

 ReceptionPacketModel (const cPacket *packet, const BitVector *serializedPacket, bps bitrate, double per, bool packetErrorless)
 
virtual double getPER () const override
 Returns the packet error rate (probability). More...
 
virtual bool isPacketErrorless () const override
 Returns true if the packet is actually free of errors. More...
 
- Public Member Functions inherited from inet::physicallayer::SignalPacketModel
 SignalPacketModel (const cPacket *packet, const BitVector *serializedPacket, bps bitrate)
 
virtual ~SignalPacketModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const cPacket * getPacket () const override
 
virtual const BitVectorgetSerializedPacket () const override
 
virtual bps getBitrate () const override
 Returns the net bitrate (datarate) of the packet. 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 double per
 
const bool packetErrorless
 
- Protected Attributes inherited from inet::physicallayer::SignalPacketModel
const cPacket * packet
 
const BitVectorserializedPacket
 
const bps bitrate
 

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::ReceptionPacketModel::ReceptionPacketModel ( const cPacket *  packet,
const BitVector serializedPacket,
bps  bitrate,
double  per,
bool  packetErrorless 
)
49  :
51  per(per),
53 {
54 }
const double per
Definition: SignalPacketModel.h:53
const BitVector * serializedPacket
Definition: SignalPacketModel.h:31
const cPacket * packet
Definition: SignalPacketModel.h:30
SignalPacketModel(const cPacket *packet, const BitVector *serializedPacket, bps bitrate)
Definition: SignalPacketModel.cc:24
const bool packetErrorless
Definition: SignalPacketModel.h:54
const bps bitrate
Definition: SignalPacketModel.h:32

Member Function Documentation

virtual double inet::physicallayer::ReceptionPacketModel::getPER ( ) const
inlineoverridevirtual

Returns the packet error rate (probability).

Implements inet::physicallayer::IReceptionPacketModel.

59 { return per; }
const double per
Definition: SignalPacketModel.h:53
virtual bool inet::physicallayer::ReceptionPacketModel::isPacketErrorless ( ) const
inlineoverridevirtual

Returns true if the packet is actually free of errors.

Implements inet::physicallayer::IReceptionPacketModel.

60 { return packetErrorless; }
const bool packetErrorless
Definition: SignalPacketModel.h:54

Member Data Documentation

const bool inet::physicallayer::ReceptionPacketModel::packetErrorless
protected
const double inet::physicallayer::ReceptionPacketModel::per
protected

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