Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
create_herbivore_common.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2020 W. Traylor <wolfgang.traylor@senckenberg.de>
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
11#ifndef FAUNA_CREATE_HERBIVORE_COMMON_H
12#define FAUNA_CREATE_HERBIVORE_COMMON_H
13
14#include <memory>
15
16namespace Fauna {
17class Hft;
18class Parameters;
19enum class Sex;
20
22
27 public:
29 const Hft& get_hft() const;
30
32 const Parameters& get_params() const;
33
34 protected:
36
37 CreateHerbivoreCommon(const std::shared_ptr<const Hft> hft,
38 const std::shared_ptr<const Parameters> parameters);
39
41 double get_body_condition(const int age_days) const;
42
43 const std::shared_ptr<const Hft> hft;
44 const std::shared_ptr<const Parameters> parameters;
45};
46
47} // namespace Fauna
48
49#endif // FAUNA_CREATE_HERBIVORE_COMMON_H
Parent class for CreateHerbivoreCohort.
Definition: create_herbivore_common.h:26
double get_body_condition(const int age_days) const
Fat mass per maximum fat mass.
Definition: create_herbivore_common.cpp:31
const std::shared_ptr< const Hft > hft
Definition: create_herbivore_common.h:43
const Hft & get_hft() const
The herbivore functional type.
Definition: create_herbivore_common.cpp:41
const Parameters & get_params() const
Global simulation parameters.
Definition: create_herbivore_common.cpp:47
const std::shared_ptr< const Parameters > parameters
Definition: create_herbivore_common.h:44
One herbivore functional type (i.e. one species).
Definition: hft.h:310
Definition: average.h:16
Sex
The sex of a herbivore.
Definition: herbivore_base.h:25
Parameters for the herbivory module.
Definition: parameters.h:65