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

#include <PulseShaper.h>

Inheritance diagram for inet::physicallayer::PulseShaper:
inet::physicallayer::IPulseShaper inet::IPrintableObject

Public Member Functions

 PulseShaper ()
 
virtual const ITransmissionSampleModelshape (const ITransmissionSymbolModel *symbolModel) const override
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const
 Prints this object to the provided output stream. More...
 
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 int samplePerSymbol
 

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

◆ PulseShaper()

inet::physicallayer::PulseShaper::PulseShaper ( )
13  :
14  samplePerSymbol(-1)
15 {}

Member Function Documentation

◆ shape()

const ITransmissionSampleModel * inet::physicallayer::PulseShaper::shape ( const ITransmissionSymbolModel symbolModel) const
overridevirtual

Implements inet::physicallayer::IPulseShaper.

18 {
19  const int sampleLength = symbolModel->getPayloadSymbolLength() * samplePerSymbol;
20  const double sampleRate = symbolModel->getPayloadSymbolRate() * samplePerSymbol;
21  return new TransmissionSampleModel(sampleLength, sampleRate, nullptr);
22 }

Member Data Documentation

◆ samplePerSymbol

const int inet::physicallayer::PulseShaper::samplePerSymbol
protected

Referenced by shape().


The documentation for this class was generated from the following files:
inet::physicallayer::PulseShaper::samplePerSymbol
const int samplePerSymbol
Definition: PulseShaper.h:21