iLand
Public Member Functions | List of all members
Environment Class Reference

Environment specifes the geographical properties of the landscape. More...

#include <environment.h>

Public Member Functions

 Environment ()
 Represents the input of various variables with regard to climate, soil properties and more. More...
 
 ~Environment ()
 
bool isSetup () const
 
bool setGridMode (const QString &grid_file_name)
 switch to 'grid-mode': load the grid provided by grid_file_name More...
 
void setDefaultValues (Climate *climate, SpeciesSet *speciesSet)
 
bool loadFromString (const QString &source)
 
bool loadFromFile (const QString &fileName)
 
QList< Climate * > climateList () const
 created climates. More...
 
QList< SpeciesSet * > speciesSetList () const
 created species sets More...
 
void setPosition (const QPointF position)
 set position (metric coordinates). Subsequent calls to retriever functions are for the current location. More...
 
Climateclimate () const
 get climate at current pos More...
 
SpeciesSetspeciesSet () const
 get species set on current pos More...
 
int currentID () const
 current grid id (in grid mode the id of the stand grid, in matrix mode simply the an autogenerated index) More...
 

Detailed Description

Environment specifes the geographical properties of the landscape.

This is achieved by specifying (user defined) values (e.g. soil depth) for each resource unit. Resource units are specified by x/y indices. see http://iland-model.org/initialize+the+landscape

Constructor & Destructor Documentation

◆ ~Environment()

Environment::~Environment ( )

Member Function Documentation

◆ climate()

Climate * Environment::climate ( ) const
inline

get climate at current pos

◆ climateList()

QList< Climate * > Environment::climateList ( ) const
inline

created climates.

◆ currentID()

int Environment::currentID ( ) const
inline

current grid id (in grid mode the id of the stand grid, in matrix mode simply the an autogenerated index)

◆ isSetup()

bool Environment::isSetup ( ) const
inline

◆ loadFromFile()

bool Environment::loadFromFile ( const QString &  fileName)

◆ loadFromString()

bool Environment::loadFromString ( const QString &  source)

◆ setDefaultValues()

void Environment::setDefaultValues ( Climate climate,
SpeciesSet speciesSet 
)
inline

◆ setGridMode()

bool Environment::setGridMode ( const QString &  grid_file_name)

switch to 'grid-mode': load the grid provided by grid_file_name

◆ setPosition()

void Environment::setPosition ( const QPointF  position)

set position (metric coordinates). Subsequent calls to retriever functions are for the current location.

sets the "pointer" to a "position" (metric coordinates).

All specified values are set (also the climate/species-set pointers).

◆ speciesSet()

SpeciesSet * Environment::speciesSet ( ) const
inline

get species set on current pos

◆ speciesSetList()

QList< SpeciesSet * > Environment::speciesSetList ( ) const
inline

created species sets


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