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

#include <ConvolutionalCoderModule.h>

Inheritance diagram for inet::physicallayer::ConvolutionalCoderModule:
inet::physicallayer::IFECCoder inet::physicallayer::IPrintableObject

Public Member Functions

 ~ConvolutionalCoderModule ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual BitVector encode (const BitVector &informationBits) const override
 
virtual std::pair< BitVector, bool > decode (const BitVector &encodedBits) const override
 
virtual const ConvolutionalCodegetForwardErrorCorrection () 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 Member Functions

virtual int numInitStages () const override
 
virtual void initialize (int stage) override
 
virtual void handleMessage (cMessage *msg) override
 

Protected Attributes

ConvolutionalCoderconvolutionalCoder
 

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::ConvolutionalCoderModule::~ConvolutionalCoderModule ( )
46 {
47  delete convolutionalCoder;
48 }
ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30

Member Function Documentation

virtual std::pair<BitVector, bool> inet::physicallayer::ConvolutionalCoderModule::decode ( const BitVector encodedBits) const
inlineoverridevirtual

Implements inet::physicallayer::IFECCoder.

42 { return convolutionalCoder->decode(encodedBits); }
std::pair< BitVector, bool > decode(const BitVector &encodedBits) const override
Definition: ConvolutionalCoder.cc:437
ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30
virtual BitVector inet::physicallayer::ConvolutionalCoderModule::encode ( const BitVector informationBits) const
inlineoverridevirtual

Implements inet::physicallayer::IFECCoder.

41 { return convolutionalCoder->encode(informationBits); }
BitVector encode(const BitVector &informationBits) const override
Definition: ConvolutionalCoder.cc:207
ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30
virtual const ConvolutionalCode* inet::physicallayer::ConvolutionalCoderModule::getForwardErrorCorrection ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IFECCoder.

ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30
const ConvolutionalCode * getForwardErrorCorrection() const override
Definition: ConvolutionalCoder.h:136
virtual void inet::physicallayer::ConvolutionalCoderModule::handleMessage ( cMessage *  msg)
inlineoverrideprotectedvirtual
35 { throw cRuntimeError("This module doesn't handle self messages"); }
void inet::physicallayer::ConvolutionalCoderModule::initialize ( int  stage)
overrideprotectedvirtual
27 {
28  if (stage == INITSTAGE_LOCAL) {
29  const char *transferFunctionMatrix = par("transferFunctionMatrix");
30  const char *puncturingMatrix = par("puncturingMatrix");
31  const char *constraintLengthVector = par("constraintLengthVector");
32  const char *mode = par("mode");
33  int codeRatePuncturingK = par("punctureK");
34  int codeRatePuncturingN = par("punctureN");
35  ConvolutionalCode *convolutionalCode = new ConvolutionalCode(transferFunctionMatrix, puncturingMatrix, constraintLengthVector, codeRatePuncturingK, codeRatePuncturingN, mode);
36  convolutionalCoder = new ConvolutionalCoder(convolutionalCode);
37  }
38 }
Local initializations.
Definition: InitStages.h:35
ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30
virtual int inet::physicallayer::ConvolutionalCoderModule::numInitStages ( ) const
inlineoverrideprotectedvirtual
33 { return NUM_INIT_STAGES; }
The number of initialization stages.
Definition: InitStages.h:116
std::ostream & inet::physicallayer::ConvolutionalCoderModule::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.

41 {
42  return convolutionalCoder->printToStream(stream, level);
43 }
std::ostream & printToStream(std::ostream &stream, int level) const override
Prints this object to the provided output stream.
Definition: ConvolutionalCoder.cc:26
ConvolutionalCoder * convolutionalCoder
Definition: ConvolutionalCoderModule.h:30

Member Data Documentation

ConvolutionalCoder* inet::physicallayer::ConvolutionalCoderModule::convolutionalCoder
protected

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