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

#include <PulseShaper.h>

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

Public Member Functions

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

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::PulseShaper::PulseShaper ( )
24  :
25  samplePerSymbol(-1)
26 {}
const int samplePerSymbol
Definition: PulseShaper.h:32

Member Function Documentation

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

Implements inet::physicallayer::IPulseShaper.

29 {
30  const int sampleLength = symbolModel->getPayloadSymbolLength() * samplePerSymbol;
31  const double sampleRate = symbolModel->getPayloadSymbolRate() * samplePerSymbol;
32  return new TransmissionSampleModel(sampleLength, sampleRate, nullptr);
33 }
const int samplePerSymbol
Definition: PulseShaper.h:32

Member Data Documentation

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

Referenced by shape().


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