INET Framework for OMNeT++/OMNEST
inet::physicalenvironment::FlatGround Class Reference

#include <FlatGround.h>

Inheritance diagram for inet::physicalenvironment::FlatGround:
inet::physicalenvironment::IGround

Public Member Functions

virtual double getElevation (const Coord &position) const override
 Returns the elevation above a fixed reference point. More...
 

Protected Member Functions

virtual void initialize (int stage) override
 

Protected Attributes

double elevation = NaN
 

Member Function Documentation

double inet::physicalenvironment::FlatGround::getElevation ( const Coord position) const
overridevirtual

Returns the elevation above a fixed reference point.

Implements inet::physicalenvironment::IGround.

33 {
34  return elevation;
35 }
double elevation
Definition: FlatGround.h:30
void inet::physicalenvironment::FlatGround::initialize ( int  stage)
overrideprotectedvirtual
27 {
28  if (stage == INITSTAGE_LOCAL)
29  elevation = par("elevation");
30 }
Local initializations.
Definition: InitStages.h:35
double elevation
Definition: FlatGround.h:30

Member Data Documentation

double inet::physicalenvironment::FlatGround::elevation = NaN
protected

Referenced by getElevation(), and initialize().


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