iLand
Public Member Functions | Static Public Member Functions | List of all members
Saplings Class Reference

The Saplings class the container for the establishment and sapling growth in iLand. More...

#include <saplings.h>

Public Member Functions

 Saplings ()
 
void setup ()
 
void calculateInitialStatistics (const ResourceUnit *ru)
 
void establishment (const ResourceUnit *ru)
 establishment of saplings from seeds see http://iland-model.org/seed+kernel+and+seed+distribution and http://iland-model.org/establishment More...
 
void saplingGrowth (const ResourceUnit *ru)
 
void simplifiedGrassCover (const ResourceUnit *ru)
 run the simplified grass cover for a RU More...
 
double topHeight (const ResourceUnit *ru) const
 calculate the top height of the sapling layer More...
 
SaplingCellcell (QPoint lif_coords, bool only_valid=true, ResourceUnit **rRUPtr=nullptr)
 return the SaplingCell (i.e. More...
 
QPointF coordOfCell (ResourceUnit *ru, int cell_index)
 return the metric coordinates of a given cell at resource unit ru and at the internal index cell_index More...
 
void clearSaplings (const QRectF &rectangle, const bool remove_biomass, bool resprout)
 clear/kill all saplings within the rectangle given by 'rectangle'. More...
 
void clearSaplings (SaplingCell *s, ResourceUnit *ru, const bool remove_biomass, bool resprout)
 clear all saplings on a given cell 's' (if 'remove_biomass' is true: biomass removed from system (e.g. burnt)) More...
 
void clearAllSaplings ()
 clear all saplings, biomass is removed (not routed to the soil layer) More...
 
int addSaplings (const QRectF &rectangle, QString species, double height, int age)
 add saplings by plantings within the (metric) rectangle. Fill cells with trees of given species/height/age More...
 
int addSprout (const Tree *t, bool tree_is_removed)
 generate vegetative offspring from the tree 't' (sprouts) More...
 

Static Public Member Functions

static void setRecruitmentVariation (const double variation)
 
static void updateBrowsingPressure ()
 

Detailed Description

The Saplings class the container for the establishment and sapling growth in iLand.

Constructor & Destructor Documentation

◆ Saplings()

Saplings::Saplings ( )

Member Function Documentation

◆ addSaplings()

int Saplings::addSaplings ( const QRectF &  rectangle,
QString  species,
double  height,
int  age 
)

add saplings by plantings within the (metric) rectangle. Fill cells with trees of given species/height/age

◆ addSprout()

int Saplings::addSprout ( const Tree t,
bool  tree_is_removed 
)

generate vegetative offspring from the tree 't' (sprouts)

◆ calculateInitialStatistics()

void Saplings::calculateInitialStatistics ( const ResourceUnit ru)

◆ cell()

SaplingCell * Saplings::cell ( QPoint  lif_coords,
bool  only_valid = true,
ResourceUnit **  rRUPtr = nullptr 
)

return the SaplingCell (i.e.

container for the ind. saplings) for the given 2x2m coordinates if 'only_valid' is true, then 0 is returned if no living saplings are on the cell 'rRUPtr' is a pointer to a RU-ptr: if provided, a pointer to the resource unit is stored

◆ clearAllSaplings()

void Saplings::clearAllSaplings ( )

clear all saplings, biomass is removed (not routed to the soil layer)

◆ clearSaplings() [1/2]

void Saplings::clearSaplings ( const QRectF &  rectangle,
const bool  remove_biomass,
bool  resprout 
)

clear/kill all saplings within the rectangle given by 'rectangle'.

If 'remove_biomass' is true, then the biomass is extracted (e.g. burnt), otherwise they are moved to soil

◆ clearSaplings() [2/2]

void Saplings::clearSaplings ( SaplingCell s,
ResourceUnit ru,
const bool  remove_biomass,
bool  resprout 
)

clear all saplings on a given cell 's' (if 'remove_biomass' is true: biomass removed from system (e.g. burnt))

◆ coordOfCell()

QPointF Saplings::coordOfCell ( ResourceUnit ru,
int  cell_index 
)

return the metric coordinates of a given cell at resource unit ru and at the internal index cell_index

◆ establishment()

void Saplings::establishment ( const ResourceUnit ru)

◆ saplingGrowth()

void Saplings::saplingGrowth ( const ResourceUnit ru)

◆ setRecruitmentVariation()

static void Saplings::setRecruitmentVariation ( const double  variation)
inlinestatic

◆ setup()

void Saplings::setup ( )

◆ simplifiedGrassCover()

void Saplings::simplifiedGrassCover ( const ResourceUnit ru)

run the simplified grass cover for a RU

◆ topHeight()

double Saplings::topHeight ( const ResourceUnit ru) const

calculate the top height of the sapling layer

◆ updateBrowsingPressure()

void Saplings::updateBrowsingPressure ( )
static

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