|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
Interface for a forage distribution algorithm. More...
#include <forage_distribution_algorithms.h>
Public Member Functions | |
| virtual void | operator() (const HabitatForage &available, ForageDistribution &forage_distribution) const =0 |
| Distribute forage equally among herbivores. More... | |
| virtual | ~DistributeForage () |
| Virtual destructor. More... | |
Interface for a forage distribution algorithm.
|
inlinevirtual |
Virtual destructor.
The virtual destructor is necessary so that the object is properly released from memory.
|
pure virtual |
Distribute forage equally among herbivores.
No direct competition. Under forage scarcity, each herbivore gets its share in proportion to its demanded forage.
| [in] | available | Available forage in the habitat. |
| [in,out] | forage_distribution | As input: Demanded forage of each herbivore (see HerbivoreInterface::get_forage_demands()). As output: Forage portion for each herbivore. Unit is kgDM/km². The sum of all portions must not exceed the available forage! |
Implemented in Fauna::DistributeForageEqually.