#include <APSKDemodulator.h>
inet::physicallayer::APSKDemodulator::APSKDemodulator |
( |
| ) |
|
const APSKModulationBase * modulation
Definition: APSKDemodulator.h:35
Implements inet::physicallayer::IDemodulator.
53 const std::vector<const ISymbol *> *symbols = symbolModel->getSymbols();
54 BitVector *bits =
new BitVector();
55 for (
auto & symbols_i : *symbols) {
56 const APSKSymbol *symbol =
dynamic_cast<const APSKSymbol *
>(symbols_i);
58 for (
unsigned int j = 0; j < symbolBits.getSize(); j++)
61 return new ReceptionBitModel(-1,
bps(
NaN), -1,
bps(
NaN), bits);
void appendBit(bool value)
Definition: ShortBitVector.h:66
virtual ShortBitVector demapToBitRepresentation(const APSKSymbol *symbol) const
Definition: APSKModulationBase.cc:77
compose< b, pow< s,-1 > > bps
Definition: Units.h:985
#define NaN
Definition: INETMath.h:103
const APSKModulationBase * modulation
Definition: APSKDemodulator.h:35
virtual const APSKModulationBase* inet::physicallayer::APSKDemodulator::getModulation |
( |
| ) |
const |
|
inlinevirtual |
const APSKModulationBase * modulation
Definition: APSKDemodulator.h:35
void inet::physicallayer::APSKDemodulator::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
static const APSKModulationBase * findModulation(const char *name)
Definition: APSKModulationBase.cc:47
Local initializations.
Definition: InitStages.h:35
const APSKModulationBase * modulation
Definition: APSKDemodulator.h:35
virtual int inet::physicallayer::APSKDemodulator::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The number of initialization stages.
Definition: InitStages.h:116
std::ostream & inet::physicallayer::APSKDemodulator::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.
45 stream <<
"APSKDemodulator";
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const APSKModulationBase * modulation
Definition: APSKDemodulator.h:35
Definition: IPrintableObject.h:36
The documentation for this class was generated from the following files: