Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
Fauna::Output::HabitatData Struct Reference

Habitat output data for one time unit. More...

#include <habitat_data.h>

Public Member Functions

Aggregation Functionality
HabitatDatamerge (const HabitatData &other, const double this_weight, const double other_weight)
 Aggregate data of this object with another one. More...
 
void reset ()
 Reset member variables to initial values. More...
 

Public Attributes

Fauna::HabitatForage available_forage
 Available forage in the habitat. More...
 
Fauna::ForageMass eaten_forage
 Forage mass [kgDM/km²/day] eaten by herbivores. More...
 
Fauna::HabitatEnvironment environment
 Abiotic conditions in the habitat. More...
 

Detailed Description

Habitat output data for one time unit.

See also
The section on output classes in the MMM software design documentation.

Member Function Documentation

◆ merge()

HabitatData & HabitatData::merge ( const HabitatData other,
const double  this_weight,
const double  other_weight 
)

Aggregate data of this object with another one.

This does no calculations if the partners are the same object, or one of the weights is zero.

Parameters
otherThe other object to be merged into this one.
this_weightWeight of this object in average building.
other_weightWeight of other in average building.
Returns
This object.
See also
Fauna::average(), Fauna::HabitatForage::merge(), Fauna::ForageValues::merge()
Exceptions
std::invalid_argumentIf either weight is not a positive number or if both are zero.

◆ reset()

void Fauna::Output::HabitatData::reset ( )
inline

Reset member variables to initial values.

Member Data Documentation

◆ available_forage

Fauna::HabitatForage Fauna::Output::HabitatData::available_forage

Available forage in the habitat.

◆ eaten_forage

Fauna::ForageMass Fauna::Output::HabitatData::eaten_forage

Forage mass [kgDM/km²/day] eaten by herbivores.

This is the sum of all forage that has been eaten by all herbivores together.

◆ environment

Fauna::HabitatEnvironment Fauna::Output::HabitatData::environment

Abiotic conditions in the habitat.


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