Function class constructing HerbivoreCohort objects.
More...
#include <create_herbivore_cohort.h>
Function class constructing HerbivoreCohort objects.
◆ CreateHerbivoreCohort()
| Fauna::CreateHerbivoreCohort::CreateHerbivoreCohort |
( |
const std::shared_ptr< const Hft > |
hft, |
|
|
const std::shared_ptr< const Parameters > |
parameters |
|
) |
| |
|
inline |
Constructor.
Protected constructor.
- Exceptions
-
| std::invalid_argument | If hft==NULL or parameters==NULL |
◆ operator()()
| HerbivoreCohort CreateHerbivoreCohort::operator() |
( |
const double |
ind_per_km2, |
|
|
const int |
age_years, |
|
|
Sex |
sex |
|
) |
| const |
|
virtual |
Create a new object instance.
- Parameters
-
| ind_per_km2 | Individual density of the new cohort. |
| age_years | Age in years. |
| sex | Gender of the herbivore. |
- Returns
- New object instance.
- Exceptions
-
| std::invalid_argument | if ind_per_km2<=0.0 or age_years<0 |
The documentation for this class was generated from the following files: