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

#include <SignalSampleModel.h>

Inheritance diagram for inet::physicallayer::SignalSampleModel:
inet::physicallayer::ISignalSampleModel inet::physicallayer::IPrintableObject inet::physicallayer::ReceptionSampleModel inet::physicallayer::TransmissionSampleModel

Public Member Functions

 SignalSampleModel (int sampleLength, double sampleRate, const std::vector< W > *samples)
 
virtual ~SignalSampleModel ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual int getSampleLength () const override
 
virtual double getSampleRate () const override
 
virtual const std::vector< W > * getSamples () 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 int sampleLength
 
const double sampleRate
 
const std::vector< W > * samples
 

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::SignalSampleModel::SignalSampleModel ( int  sampleLength,
double  sampleRate,
const std::vector< W > *  samples 
)
24  :
28 {
29 }
const int sampleLength
Definition: SignalSampleModel.h:30
const double sampleRate
Definition: SignalSampleModel.h:31
const std::vector< W > * samples
Definition: SignalSampleModel.h:32
inet::physicallayer::SignalSampleModel::~SignalSampleModel ( )
virtual
32 {
33  delete samples;
34 }
const std::vector< W > * samples
Definition: SignalSampleModel.h:32

Member Function Documentation

virtual int inet::physicallayer::SignalSampleModel::getSampleLength ( ) const
inlineoverridevirtual

Implements inet::physicallayer::ISignalSampleModel.

39 { return sampleLength; }
const int sampleLength
Definition: SignalSampleModel.h:30
virtual double inet::physicallayer::SignalSampleModel::getSampleRate ( ) const
inlineoverridevirtual

Implements inet::physicallayer::ISignalSampleModel.

40 { return sampleRate; }
const double sampleRate
Definition: SignalSampleModel.h:31
virtual const std::vector<W>* inet::physicallayer::SignalSampleModel::getSamples ( ) const
inlineoverridevirtual

Implements inet::physicallayer::ISignalSampleModel.

41 { return samples; }
const std::vector< W > * samples
Definition: SignalSampleModel.h:32
std::ostream & inet::physicallayer::SignalSampleModel::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 << "SignalSampleModel";
39  if (level <= PRINT_LEVEL_TRACE)
40  stream << ", sampleLength = " << sampleLength
41  << ", sampleRate = " << sampleRate;
42  return stream;
43 }
const int sampleLength
Definition: SignalSampleModel.h:30
const double sampleRate
Definition: SignalSampleModel.h:31

Member Data Documentation

const int inet::physicallayer::SignalSampleModel::sampleLength
protected

Referenced by printToStream().

const double inet::physicallayer::SignalSampleModel::sampleRate
protected

Referenced by printToStream().

const std::vector<W>* inet::physicallayer::SignalSampleModel::samples
protected

Referenced by ~SignalSampleModel().


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