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

#include <Interference.h>

Inheritance diagram for inet::physicallayer::Interference:
inet::physicallayer::IInterference inet::physicallayer::IPrintableObject

Public Member Functions

 Interference (const INoise *noise, const std::vector< const IReception * > *receptions)
 
virtual ~Interference ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. More...
 
virtual const INoisegetBackgroundNoise () const override
 
virtual const std::vector< const IReception * > * getInterferingReceptions () 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 Attributes

const INoisebackgroundNoise
 
const std::vector< const IReception * > * interferingReceptions
 

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::Interference::Interference ( const INoise noise,
const std::vector< const IReception * > *  receptions 
)
24  :
27 {
28 }
const INoise * backgroundNoise
Definition: Interference.h:30
const std::vector< const IReception * > * interferingReceptions
Definition: Interference.h:31
inet::physicallayer::Interference::~Interference ( )
virtual
31 {
32  delete backgroundNoise;
33  delete interferingReceptions;
34 }
const INoise * backgroundNoise
Definition: Interference.h:30
const std::vector< const IReception * > * interferingReceptions
Definition: Interference.h:31

Member Function Documentation

virtual const INoise* inet::physicallayer::Interference::getBackgroundNoise ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IInterference.

38 { return backgroundNoise; }
const INoise * backgroundNoise
Definition: Interference.h:30
virtual const std::vector<const IReception *>* inet::physicallayer::Interference::getInterferingReceptions ( ) const
inlineoverridevirtual

Implements inet::physicallayer::IInterference.

39 { return interferingReceptions; }
const std::vector< const IReception * > * interferingReceptions
Definition: Interference.h:31
std::ostream & inet::physicallayer::Interference::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.

37 {
38  stream << "Interference";
39  if (level <= PRINT_LEVEL_TRACE)
40  stream << ", backgroundNoise = " << printObjectToString(backgroundNoise, level + 1)
41  << ", interferingReceptions = " << interferingReceptions ;
42  return stream;
43 }
std::string printObjectToString(const IPrintableObject *object, int level)
Definition: IPrintableObject.h:73
const INoise * backgroundNoise
Definition: Interference.h:30
const std::vector< const IReception * > * interferingReceptions
Definition: Interference.h:31

Member Data Documentation

const INoise* inet::physicallayer::Interference::backgroundNoise
protected

Referenced by printToStream(), and ~Interference().

const std::vector<const IReception *>* inet::physicallayer::Interference::interferingReceptions
protected

Referenced by printToStream(), and ~Interference().


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