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

#include <SignalBitModel.h>

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

Public Member Functions

 SignalBitModel (int headerBitLength, bps headerBitRate, int payloadBitLength, bps payloadBitRate, const BitVector *bits)
 
virtual ~SignalBitModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual int getHeaderBitLength () const override
 
virtual bps getHeaderBitRate () const override
 Returns the gross (physical) bitrate of the PHY frame header. More...
 
virtual int getPayloadBitLength () const override
 
virtual bps getPayloadBitRate () const override
 Returns the gross (physical) bitrate of the PHY frame data. More...
 
virtual const BitVectorgetBits () const override
 
- 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 BitVectorbits
 
const int headerBitLength
 
const bps headerBitRate
 
const int payloadBitLength
 
const bps payloadBitRate
 

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::SignalBitModel::SignalBitModel ( int  headerBitLength,
bps  headerBitRate,
int  payloadBitLength,
bps  payloadBitRate,
const BitVector bits 
)
24  :
25  bits(bits),
30 {
31 }
const bps payloadBitRate
Definition: SignalBitModel.h:36
const BitVector * bits
Definition: SignalBitModel.h:32
const int headerBitLength
Definition: SignalBitModel.h:33
const bps headerBitRate
Definition: SignalBitModel.h:34
const int payloadBitLength
Definition: SignalBitModel.h:35
inet::physicallayer::SignalBitModel::~SignalBitModel ( )
virtual
34 {
35  delete bits;
36 }
const BitVector * bits
Definition: SignalBitModel.h:32

Member Function Documentation

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

Implements inet::physicallayer::ISignalBitModel.

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

47 { return bits; }
const BitVector * bits
Definition: SignalBitModel.h:32
virtual int inet::physicallayer::SignalBitModel::getHeaderBitLength ( ) const
inlineoverridevirtual
virtual bps inet::physicallayer::SignalBitModel::getHeaderBitRate ( ) const
inlineoverridevirtual

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

Implements inet::physicallayer::ISignalBitModel.

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

44 { return headerBitRate; }
const bps headerBitRate
Definition: SignalBitModel.h:34
virtual int inet::physicallayer::SignalBitModel::getPayloadBitLength ( ) const
inlineoverridevirtual
virtual bps inet::physicallayer::SignalBitModel::getPayloadBitRate ( ) const
inlineoverridevirtual

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

Implements inet::physicallayer::ISignalBitModel.

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

46 { return payloadBitRate; }
const bps payloadBitRate
Definition: SignalBitModel.h:36
std::ostream & inet::physicallayer::SignalBitModel::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.

39 {
40  stream << "SignalBitModel";
41  if (level <= PRINT_LEVEL_TRACE)
42  stream << ", headerBitLength = " << headerBitLength
43  << ", headerBitRate = " << headerBitRate
44  << ", payloadBitLength = " << payloadBitLength
45  << ", payloadBitRate = " << payloadBitRate;
46  return stream;
47 }
const bps payloadBitRate
Definition: SignalBitModel.h:36
const int headerBitLength
Definition: SignalBitModel.h:33
const bps headerBitRate
Definition: SignalBitModel.h:34
const int payloadBitLength
Definition: SignalBitModel.h:35

Member Data Documentation

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

Referenced by ~SignalBitModel().

const int inet::physicallayer::SignalBitModel::headerBitLength
protected

Referenced by printToStream().

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

Referenced by printToStream().

const int inet::physicallayer::SignalBitModel::payloadBitLength
protected

Referenced by printToStream().

const bps inet::physicallayer::SignalBitModel::payloadBitRate
protected

Referenced by printToStream().


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