11#ifndef FAUNA_HERBIVORE_COHORT_H
12#define FAUNA_HERBIVORE_COHORT_H
49 std::shared_ptr<const Hft>
hft,
const Sex sex,
Abstract base class for herbivores.
Definition: herbivore_base.h:31
int get_age_days() const
Current age in days.
Definition: herbivore_base.h:49
const Sex sex
Definition: herbivore_base.h:279
int age_days
Definition: herbivore_base.h:285
const std::shared_ptr< const Hft > hft
Definition: herbivore_base.h:278
const ForageEnergyContent forage_gross_energy
Definition: herbivore_base.h:281
A herbivore cohort (age-class)
Definition: herbivore_cohort.h:25
void merge(HerbivoreCohort &other)
Merge another cohort into this one.
Definition: herbivore_cohort.cpp:55
virtual void kill()
Mark this herbivore as dead (see is_dead()).
Definition: herbivore_cohort.h:31
bool is_same_age(const HerbivoreCohort &other) const
Check if this and the other cohort are of the same age.
Definition: herbivore_cohort.h:76
double ind_per_km2
Definition: herbivore_cohort.h:103
virtual double get_ind_per_km2() const
Individuals per km²
Definition: herbivore_cohort.h:28
virtual bool is_dead() const
A cohort is dead if its density is zero.
Definition: herbivore_cohort.cpp:53
virtual void apply_mortality(const double mortality)
Apply a fractional mortality.
Definition: herbivore_cohort.cpp:40
A versatile base class to derive herbivores from.
Sex
The sex of a herbivore.
Definition: herbivore_base.h:25