All values for large herbivore forage in a Habitat.
More...
#include <habitat_forage.h>
All values for large herbivore forage in a Habitat.
◆ HabitatForage()
| Fauna::HabitatForage::HabitatForage |
( |
| ) |
|
|
inline |
Constructor with zero values.
◆ get_digestibility()
Get digestibility [fractional] for all edible forage types.
If mass is zero, digestibility is undefined.
- See also
- Energy Content of Forage
◆ get_mass()
Get dry matter mass [kgDM/km²] for all edible forage types.
◆ get_nitrogen_content()
Fraction of nitrogen in dry matter [kgN/kgDM].
◆ get_total()
Total forage in the habitat.
Digestibility is weighted average, forage mass is sum. If mass is zero, digestibility is also zero.
◆ merge()
◆ operator[]() [1/2]
Reference to forage object by forage type.
- Parameters
-
- Returns
- Polymorphic reference to forage class object.
- Exceptions
-
| std::logic_error | if ft is not implemented. |
◆ operator[]() [2/2]
Reference to forage object by forage type.
- Parameters
-
- Returns
- Polymorphic reference to forage class object.
- Exceptions
-
| std::logic_error | if ft is not implemented. |
◆ set_nitrogen_content()
| void HabitatForage::set_nitrogen_content |
( |
const ForageFraction & |
nitrogen_content | ) |
|
Set the nitrogen content [kgN/kgDM] for all forage types.
- Exceptions
-
| std::invalid_argument | If one value of nitrogen_content equals 1. |
◆ grass
The grass forage in the habitat.
◆ inedible
Inedible forage in the habitat.
This is currently not used, but only here to return something if ForageType::Inedible is passed to the [] operator.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/modular-megafauna-model/checkouts/latest/include/Fauna/habitat_forage.h
- /home/docs/checkouts/readthedocs.org/user_builds/modular-megafauna-model/checkouts/latest/src/Fauna/habitat_forage.cpp