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

This class implements parameterized amplitude-shift keying that arranges symbols evenly on the x axis. More...

#include <MASKModulation.h>

Inheritance diagram for inet::physicallayer::MASKModulation:
inet::physicallayer::APSKModulationBase inet::physicallayer::IAPSKModulation inet::physicallayer::IModulation inet::physicallayer::IPrintableObject

Public Member Functions

 MASKModulation (double maxAmplitude, unsigned int codeWordSize)
 
virtual ~MASKModulation ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual double calculateBER (double snir, Hz bandwidth, bps bitrate) const override
 Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
 
virtual double calculateSER (double snir, Hz bandwidth, bps bitrate) const override
 Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate. More...
 
- Public Member Functions inherited from inet::physicallayer::APSKModulationBase
 APSKModulationBase (const std::vector< APSKSymbol > *constellation)
 
virtual const std::vector< APSKSymbol > * getConstellation () const
 
virtual unsigned int getConstellationSize () const override
 
virtual unsigned int getCodeWordSize () const override
 
virtual const APSKSymbolmapToConstellationDiagram (const ShortBitVector &symbol) const
 
virtual ShortBitVector demapToBitRepresentation (const APSKSymbol *symbol) const
 
- 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
 

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
}
 
- Static Public Member Functions inherited from inet::physicallayer::APSKModulationBase
static const APSKModulationBasefindModulation (const char *name)
 
- Protected Attributes inherited from inet::physicallayer::APSKModulationBase
const std::vector< APSKSymbol > * constellation
 
const unsigned int codeWordSize
 
const unsigned int constellationSize
 

Detailed Description

This class implements parameterized amplitude-shift keying that arranges symbols evenly on the x axis.

http://en.wikipedia.org/wiki/Amplitude-shift_keying

Constructor & Destructor Documentation

inet::physicallayer::MASKModulation::MASKModulation ( double  maxAmplitude,
unsigned int  codeWordSize 
)
35  : APSKModulationBase(createConstellation(maxAmplitude, codeWordSize))
36 {
37 }
const unsigned int codeWordSize
Definition: APSKModulationBase.h:36
APSKModulationBase(const std::vector< APSKSymbol > *constellation)
Definition: APSKModulationBase.cc:32
inet::physicallayer::MASKModulation::~MASKModulation ( )
virtual
40 {
41  delete constellation;
42 }
const std::vector< APSKSymbol > * constellation
Definition: APSKModulationBase.h:35

Member Function Documentation

double inet::physicallayer::MASKModulation::calculateBER ( double  snir,
Hz  bandwidth,
bps  bitrate 
) const
overridevirtual

Returns the bit error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.

Implements inet::physicallayer::IModulation.

51 {
52  throw cRuntimeError("Not implemented yet");
53 }
double inet::physicallayer::MASKModulation::calculateSER ( double  snir,
Hz  bandwidth,
bps  bitrate 
) const
overridevirtual

Returns the symbol error rate as a function of the signal to noise and interference ratio, the bandwidth, and the gross (physical) bitrate.

Implements inet::physicallayer::IModulation.

56 {
57  throw cRuntimeError("Not implemented yet");
58 }
std::ostream & inet::physicallayer::MASKModulation::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::APSKModulationBase.

45 {
46  stream << "MASKModulaiton";
47  return APSKModulationBase::printToStream(stream, level);
48 }
virtual std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: APSKModulationBase.cc:39

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