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

#include <IsotropicAntenna.h>

Inheritance diagram for inet::physicallayer::IsotropicAntenna:
inet::physicallayer::AntennaBase inet::physicallayer::IAntenna inet::IPrintableObject

Classes

class  AntennaGain
 

Public Member Functions

 IsotropicAntenna ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level, int evFlags=0) const override
 Prints this object to the provided output stream. More...
 
virtual Ptr< const IAntennaGaingetGain () const override
 Returns the antenna's gain calculator for directional selectivity. More...
 
- Public Member Functions inherited from inet::physicallayer::AntennaBase
 AntennaBase ()
 
virtual bool isDirectional () const override
 Returns true if the antenna has directional selectivity (i.e. More...
 
virtual IMobilitygetMobility () const override
 Returns the mobility of this antenna that describes its position and orientation over time. More...
 
virtual int getNumAntennas () const override
 Returns the number of antennas in the array. More...
 
- Public Member Functions inherited from inet::IPrintableObject
virtual ~IPrintableObject ()
 
virtual std::string printToString () const
 
virtual std::string printToString (int level, int evFlags=0) const
 
virtual std::string getInfoStringRepresentation (int evFlags=0) const
 
virtual std::string getDetailStringRepresentation (int evFlags=0) const
 
virtual std::string getDebugStringRepresentation (int evFlags=0) const
 
virtual std::string getTraceStringRepresentation (int evFlags=0) const
 
virtual std::string getCompleteStringRepresentation (int evFlags=0) const
 

Protected Attributes

Ptr< AntennaGaingain
 
- Protected Attributes inherited from inet::physicallayer::AntennaBase
opp_component_ptr< IMobilitymobility
 
int numAntennas
 

Additional Inherited Members

- Public Types inherited from inet::IPrintableObject
enum  PrintLevel {
  PRINT_LEVEL_TRACE, PRINT_LEVEL_DEBUG, PRINT_LEVEL_DETAIL, PRINT_LEVEL_INFO,
  PRINT_LEVEL_COMPLETE = INT_MIN
}
 
enum  PrintFlag { PRINT_FLAG_FORMATTED = (1 << 0), PRINT_FLAG_MULTILINE = (1 << 1) }
 
- Protected Member Functions inherited from inet::physicallayer::AntennaBase
virtual void initialize (int stage) override
 

Constructor & Destructor Documentation

◆ IsotropicAntenna()

inet::physicallayer::IsotropicAntenna::IsotropicAntenna ( )
16  :
17  AntennaBase(), gain(makeShared<AntennaGain>())
18 {
19 }

Member Function Documentation

◆ getGain()

virtual Ptr<const IAntennaGain> inet::physicallayer::IsotropicAntenna::getGain ( ) const
inlineoverridevirtual

Returns the antenna's gain calculator for directional selectivity.

This object may be copied as needed, i.e. IAntennaGain objects are expected to have no reference to other objects.

Implements inet::physicallayer::IAntenna.

33 { return gain; }

◆ printToStream()

std::ostream & inet::physicallayer::IsotropicAntenna::printToStream ( std::ostream &  stream,
int  level,
int  evFlags = 0 
) const
overridevirtual

Prints this object to the provided output stream.

Reimplemented from inet::physicallayer::AntennaBase.

22 {
23  stream << "IsotropicAntenna";
24  return AntennaBase::printToStream(stream, level);
25 }

Member Data Documentation

◆ gain

Ptr<AntennaGain> inet::physicallayer::IsotropicAntenna::gain
protected

The documentation for this class was generated from the following files:
inet::physicallayer::AntennaBase::AntennaBase
AntennaBase()
Definition: AntennaBase.cc:16
inet::physicallayer::IsotropicAntenna::gain
Ptr< AntennaGain > gain
Definition: IsotropicAntenna.h:27
inet::physicallayer::AntennaBase::printToStream
virtual std::ostream & printToStream(std::ostream &stream, int level, int evFlags=0) const override
Prints this object to the provided output stream.
Definition: AntennaBase.cc:32