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

#include <AntennaBase.h>

Inheritance diagram for inet::physicallayer::AntennaBase:
inet::physicallayer::IAntenna inet::physicallayer::IPrintableObject inet::physicallayer::ConstantGainAntenna inet::physicallayer::CosineAntenna inet::physicallayer::DipoleAntenna inet::physicallayer::InterpolatingAntenna inet::physicallayer::IsotropicAntenna inet::physicallayer::ParabolicAntenna

Public Member Functions

 AntennaBase ()
 
virtual std::ostream & printToStream (std::ostream &stream, int level) const override
 Prints this object to the provided output stream. 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::physicallayer::IAntenna
virtual double getMaxGain () const =0
 Returns the maximum possible antenna gain independent of any direction. More...
 
virtual double computeGain (const EulerAngles direction) const =0
 Returns the antenna gain in the provided direction. More...
 
- 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 void initialize (int stage) override
 

Protected Attributes

IMobilitymobility
 
int numAntennas
 

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::AntennaBase::AntennaBase ( )
25  :
26  mobility(nullptr),
27  numAntennas(-1)
28 {
29 }
int numAntennas
Definition: AntennaBase.h:31
IMobility * mobility
Definition: AntennaBase.h:30

Member Function Documentation

virtual IMobility* inet::physicallayer::AntennaBase::getMobility ( ) const
inlineoverridevirtual

Returns the mobility of this antenna that describes its position and orientation over time.

Implements inet::physicallayer::IAntenna.

40 { return mobility; }
IMobility * mobility
Definition: AntennaBase.h:30
virtual int inet::physicallayer::AntennaBase::getNumAntennas ( ) const
inlineoverridevirtual

Returns the number of antennas in the array.

Implements inet::physicallayer::IAntenna.

41 { return numAntennas; }
int numAntennas
Definition: AntennaBase.h:31
void inet::physicallayer::AntennaBase::initialize ( int  stage)
overrideprotectedvirtual

Reimplemented in inet::physicallayer::InterpolatingAntenna, inet::physicallayer::ParabolicAntenna, inet::physicallayer::CosineAntenna, inet::physicallayer::ConstantGainAntenna, and inet::physicallayer::DipoleAntenna.

Referenced by inet::physicallayer::ConstantGainAntenna::initialize(), inet::physicallayer::DipoleAntenna::initialize(), inet::physicallayer::CosineAntenna::initialize(), inet::physicallayer::ParabolicAntenna::initialize(), and inet::physicallayer::InterpolatingAntenna::initialize().

32 {
33  if (stage == INITSTAGE_LOCAL) {
34  mobility = getModuleFromPar<IMobility>(par("mobilityModule"), getContainingNode(this));
35  numAntennas = par("numAntennas");
36  }
37 }
Local initializations.
Definition: InitStages.h:35
cModule * getContainingNode(const cModule *from)
Find the node containing the given module.
Definition: ModuleAccess.cc:65
int numAntennas
Definition: AntennaBase.h:31
IMobility * mobility
Definition: AntennaBase.h:30
std::ostream & inet::physicallayer::AntennaBase::printToStream ( std::ostream &  stream,
int  level 
) const
overridevirtual

Member Data Documentation

IMobility* inet::physicallayer::AntennaBase::mobility
protected

Referenced by initialize().

int inet::physicallayer::AntennaBase::numAntennas
protected

Referenced by initialize().


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