11#ifndef FAUNA_SIMULATE_DAY_H
12#define FAUNA_SIMULATE_DAY_H
24class PopulationInterface;
61 void operator()(
const bool do_herbivores,
const bool establish_as_needed);
83 static std::map<PopulationInterface*, HerbivoreVector>
get_herbivores(
Function object to feed herbivores.
Definition: feed_herbivores.h:23
All values for large herbivore forage in a Habitat.
Definition: habitat_forage.h:21
Abstract class of a homogenous spatial unit populated by herbivores.
Definition: habitat.h:29
Function object to simulate one day in one habitat.
Definition: simulate_day.h:33
std::map< PopulationInterface *, HerbivoreVector > herbivores
Pointers to all herbivores in the habitat.
Definition: simulate_day.h:104
static std::map< PopulationInterface *, HerbivoreVector > get_herbivores(const PopulationList &)
Get references to all herbivores in the list of populations.
Definition: simulate_day.cpp:53
SimulationUnit & simulation_unit
Reference to the simulation unit.
Definition: simulate_day.h:110
void operator()(const bool do_herbivores, const bool establish_as_needed)
Simulate one day.
Definition: simulate_day.cpp:63
void simulate_herbivores()
Iterate over all herbivores and let them do their simulation.
Definition: simulate_day.cpp:120
std::map< PopulationInterface *, double > total_offspring
All offspring for each population today [ind/km²].
Definition: simulate_day.h:107
const int day_of_year
Julian day of year (0 = Jan 1st).
Definition: simulate_day.h:95
static HabitatForage get_corrected_forage(const Habitat &)
Read available forage and set it to zero if it is very low.
Definition: simulate_day.cpp:40
void create_offspring()
Create the offspring counted in total_offspring.
Definition: simulate_day.cpp:32
const HabitatEnvironment environment
The current abiotic conditions.
Definition: simulate_day.h:98
const FeedHerbivores & feed_herbivores
Function object doing the feeding.
Definition: simulate_day.h:101
A habitat with the herbivores that live in it.
Definition: simulation_unit.h:27
Classes for abiotic conditions for herbivores.
Type definitions of vectors of herbivore pointers.
std::vector< std::shared_ptr< PopulationInterface > > PopulationList
Definition: population_list.h:21
A list of herbivore populations in a habitat.
Variables describing the habitat that are not forage ⇒ abiotic environment.
Definition: environment.h:16