|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
Habitat output data for one time unit. More...
#include <habitat_data.h>
Public Member Functions | |
Aggregation Functionality | |
| HabitatData & | merge (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... | |
Habitat output data for one time unit.
| 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.
| other | The other object to be merged into this one. |
| this_weight | Weight of this object in average building. |
| other_weight | Weight of other in average building. |
| std::invalid_argument | If either weight is not a positive number or if both are zero. |
|
inline |
Reset member variables to initial values.
| Fauna::HabitatForage Fauna::Output::HabitatData::available_forage |
Available forage in the habitat.
| 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.
| Fauna::HabitatEnvironment Fauna::Output::HabitatData::environment |
Abiotic conditions in the habitat.