#include <ApskModulator.h>
◆ ApskModulator()
| inet::physicallayer::ApskModulator::ApskModulator |
( |
| ) |
|
◆ getModulation()
| virtual const IModulation* inet::physicallayer::ApskModulator::getModulation |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ initialize()
| void inet::physicallayer::ApskModulator::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
◆ modulate()
Implements inet::physicallayer::IModulator.
42 const BitVector *bits = bitModel->getBits();
44 if (bits->getSize() % codeWordSize != 0)
45 throw cRuntimeError(
"Invalid bit length for code word size");
46 ShortBitVector symbolBits;
47 std::vector<const ISymbol *> *symbols =
new std::vector<const ISymbol *>();
48 for (
unsigned int i = 0; i < bits->getSize(); i++) {
49 symbolBits.setBit(i % codeWordSize, bits->getBit(i));
50 if (i % codeWordSize == codeWordSize - 1)
◆ numInitStages()
| virtual int inet::physicallayer::ApskModulator::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ printToStream()
| std::ostream & inet::physicallayer::ApskModulator::printToStream |
( |
std::ostream & |
stream, |
|
|
int |
level, |
|
|
int |
evFlags = 0 |
|
) |
| const |
|
overridevirtual |
Prints this object to the provided output stream.
Reimplemented from inet::IPrintableObject.
34 stream <<
"ApskModulator";
◆ modulation
The documentation for this class was generated from the following files: