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

#include <SignalPacketModel.h>

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

Public Member Functions

 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 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::SignalPacketModel::SignalPacketModel ( const cPacket *  packet,
const BitVector serializedPacket,
bps  bitrate 
)
24  :
25  packet(packet),
28 {
29 }
const BitVector * serializedPacket
Definition: SignalPacketModel.h:31
const cPacket * packet
Definition: SignalPacketModel.h:30
const bps bitrate
Definition: SignalPacketModel.h:32
inet::physicallayer::SignalPacketModel::~SignalPacketModel ( )
virtual
32 {
33  delete serializedPacket;
34 }
const BitVector * serializedPacket
Definition: SignalPacketModel.h:31

Member Function Documentation

virtual bps inet::physicallayer::SignalPacketModel::getBitrate ( ) const
inlineoverridevirtual

Returns the net bitrate (datarate) of the packet.

Implements inet::physicallayer::ISignalPacketModel.

Referenced by inet::physicallayer::LayeredErrorModelBase::computePacketModel().

41 { return bitrate; }
const bps bitrate
Definition: SignalPacketModel.h:32
virtual const cPacket* inet::physicallayer::SignalPacketModel::getPacket ( ) const
inlineoverridevirtual
virtual const BitVector* inet::physicallayer::SignalPacketModel::getSerializedPacket ( ) const
inlineoverridevirtual
std::ostream & inet::physicallayer::SignalPacketModel::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.

37 {
38  stream << "SignalPacketModel";
39  if (level <= PRINT_LEVEL_TRACE)
40  stream << ", packet = " << packet;
41  return stream;
42 }
const cPacket * packet
Definition: SignalPacketModel.h:30

Member Data Documentation

const bps inet::physicallayer::SignalPacketModel::bitrate
protected
const cPacket* inet::physicallayer::SignalPacketModel::packet
protected

Referenced by printToStream().

const BitVector* inet::physicallayer::SignalPacketModel::serializedPacket
protected

Referenced by ~SignalPacketModel().


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