#include <APSKModulator.h>
inet::physicallayer::APSKModulator::APSKModulator |
( |
| ) |
|
const APSKModulationBase * modulation
Definition: APSKModulator.h:34
virtual const IModulation* inet::physicallayer::APSKModulator::getModulation |
( |
| ) |
const |
|
inlineoverridevirtual |
void inet::physicallayer::APSKModulator::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
static const APSKModulationBase * findModulation(const char *name)
Definition: APSKModulationBase.cc:47
const APSKModulationBase * modulation
Definition: APSKModulator.h:34
Local initializations.
Definition: InitStages.h:35
Implements inet::physicallayer::IModulator.
51 const BitVector *bits = bitModel->getBits();
53 if (bits->getSize() % codeWordSize != 0)
54 throw cRuntimeError(
"Invalid bit length for code word size");
55 ShortBitVector symbolBits;
56 std::vector<const ISymbol *> *symbols =
new std::vector<const ISymbol *>();
57 for (
unsigned int i = 0; i < bits->getSize(); i++) {
58 symbolBits.setBit(i % codeWordSize, bits->getBit(i));
59 if (i % codeWordSize == codeWordSize - 1)
const APSKModulationBase * modulation
Definition: APSKModulator.h:34
#define NaN
Definition: INETMath.h:103
virtual const APSKSymbol * mapToConstellationDiagram(const ShortBitVector &symbol) const
Definition: APSKModulationBase.cc:69
virtual unsigned int getCodeWordSize() const override
Definition: APSKModulationBase.h:47
virtual int inet::physicallayer::APSKModulator::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The number of initialization stages.
Definition: InitStages.h:116
std::ostream & inet::physicallayer::APSKModulator::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.
43 stream <<
"APSKModulator";
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const APSKModulationBase * modulation
Definition: APSKModulator.h:34
Definition: IPrintableObject.h:34
The documentation for this class was generated from the following files: