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

#include <SignalBitModel.h>

Inheritance diagram for inet::physicallayer::SignalBitModel:
inet::physicallayer::ISignalBitModel inet::IPrintableObject inet::physicallayer::ReceptionBitModel inet::physicallayer::TransmissionBitModel

Public Member Functions

 SignalBitModel (b headerLength, bps headerBitRate, b dataLength, bps dataBitRate, const BitVector *bits)
 
virtual ~SignalBitModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual b getHeaderLength () const override
 
virtual bps getHeaderBitRate () const override
 Returns the gross (physical) bitrate of the PHY frame header. More...
 
virtual b getDataLength () const override
 
virtual bps getDataBitRate () const override
 Returns the gross (physical) bitrate of the PHY frame data. More...
 
virtual const BitVectorgetBits () const override
 
- 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 BitVectorbits
 
const b headerLength
 
const bps headerBitRate
 
const b dataLength
 
const bps dataBitRate
 

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

◆ SignalBitModel()

inet::physicallayer::SignalBitModel::SignalBitModel ( b  headerLength,
bps  headerBitRate,
b  dataLength,
bps  dataBitRate,
const BitVector bits 
)

◆ ~SignalBitModel()

inet::physicallayer::SignalBitModel::~SignalBitModel ( )
virtual
23 {
24  delete bits;
25 }

Member Function Documentation

◆ getBits()

virtual const BitVector* inet::physicallayer::SignalBitModel::getBits ( ) const
inlineoverridevirtual

◆ getDataBitRate()

virtual bps inet::physicallayer::SignalBitModel::getDataBitRate ( ) const
inlineoverridevirtual

Returns the gross (physical) bitrate of the PHY frame data.

Implements inet::physicallayer::ISignalBitModel.

36 { return dataBitRate; }

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

◆ getDataLength()

virtual b inet::physicallayer::SignalBitModel::getDataLength ( ) const
inlineoverridevirtual

◆ getHeaderBitRate()

virtual bps inet::physicallayer::SignalBitModel::getHeaderBitRate ( ) const
inlineoverridevirtual

Returns the gross (physical) bitrate of the PHY frame header.

Implements inet::physicallayer::ISignalBitModel.

34 { return headerBitRate; }

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

◆ getHeaderLength()

virtual b inet::physicallayer::SignalBitModel::getHeaderLength ( ) const
inlineoverridevirtual

◆ printToStream()

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

Prints this object to the provided output stream.

Reimplemented from inet::IPrintableObject.

28 {
29  stream << "SignalBitModel";
30  if (level <= PRINT_LEVEL_TRACE)
31  stream << EV_FIELD(headerLength)
35  return stream;
36 }

Member Data Documentation

◆ bits

const BitVector* inet::physicallayer::SignalBitModel::bits
protected

Referenced by ~SignalBitModel().

◆ dataBitRate

const bps inet::physicallayer::SignalBitModel::dataBitRate
protected

Referenced by printToStream().

◆ dataLength

const b inet::physicallayer::SignalBitModel::dataLength
protected

Referenced by printToStream().

◆ headerBitRate

const bps inet::physicallayer::SignalBitModel::headerBitRate
protected

Referenced by printToStream().

◆ headerLength

const b inet::physicallayer::SignalBitModel::headerLength
protected

Referenced by printToStream().


The documentation for this class was generated from the following files:
inet::physicallayer::SignalBitModel::dataLength
const b dataLength
Definition: SignalBitModel.h:25
inet::physicallayer::SignalBitModel::headerLength
const b headerLength
Definition: SignalBitModel.h:23
EV_FIELD
#define EV_FIELD(...)
Definition: INETDefs.h:112
inet::IPrintableObject::PRINT_LEVEL_TRACE
@ PRINT_LEVEL_TRACE
Definition: IPrintableObject.h:22
inet::physicallayer::SignalBitModel::headerBitRate
const bps headerBitRate
Definition: SignalBitModel.h:24
inet::physicallayer::SignalBitModel::bits
const BitVector * bits
Definition: SignalBitModel.h:22
inet::physicallayer::SignalBitModel::dataBitRate
const bps dataBitRate
Definition: SignalBitModel.h:26