|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
#include <logistic_grass.h>
Classes | |
| struct | Parameters |
| Settings for grass growth. More... | |
Public Member Functions | |
| LogisticGrass (const LogisticGrass::Parameters &settings) | |
| Constructor. More... | |
| void | grow_daily (const int day_of_year) |
| Perform grass growth and decay for one day. More... | |
| const GrassForage & | get_forage () const |
| Get current grass forage. More... | |
| void | set_forage (const GrassForage &f) |
| Set the grass forage. More... | |
Private Attributes | |
| GrassForage | forage |
| Current forage. More... | |
| LogisticGrass::Parameters | settings |
| int | simulation_month |
| The current simulation month, starting with zero. More... | |
Helper class for performing simple grass growth to test herbivore functionality
| LogisticGrass::LogisticGrass | ( | const LogisticGrass::Parameters & | settings | ) |
Constructor.
| std::invalid_argument | If settings are not valid. |
|
inline |
Get current grass forage.
| void LogisticGrass::grow_daily | ( | const int | day_of_year | ) |
Perform grass growth and decay for one day.
| day_of_year | January 1st = 0 |
| std::invalid_argument | if not 0<=day_of_year<=364 |
|
inline |
Set the grass forage.
|
private |
Current forage.
Excluding the reserve LogisticGrass::Parameters::reserve.
|
private |
|
private |
The current simulation month, starting with zero.
We need this to address the current value in Parameters::growth_monthly and Parameters::decay_monthly.