Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Utopia::Models::PredatorPreyPlant::SpeciesBaseParams Struct Reference

Struct that holds all species-specific parameters. More...

#include <species.hh>

Inheritance diagram for Utopia::Models::PredatorPreyPlant::SpeciesBaseParams:
Inheritance graph
[legend]
Collaboration diagram for Utopia::Models::PredatorPreyPlant::SpeciesBaseParams:
Collaboration graph
[legend]

Public Member Functions

 SpeciesBaseParams (const Utopia::DataIO::Config &cfg)
 Construct a species from a configuration node.
 
 SpeciesBaseParams ()=delete
 
- Public Member Functions inherited from Utopia::Models::PredatorPrey::SpeciesBaseParams
 SpeciesBaseParams (const Utopia::DataIO::Config &cfg)
 Load species parameters from a configuration node.
 
 SpeciesBaseParams ()=delete
 

Public Attributes

unsigned int move_limit
 Movement limit.
 
- Public Attributes inherited from Utopia::Models::PredatorPrey::SpeciesBaseParams
double cost_of_living
 Cost of living that is taken each time step.
 
double resource_intake
 Resource intake from eating.
 
double repro_resource_requ
 Minimal reproduction resources requirements.
 
double resource_max
 Maximal resource level.
 
double repro_cost
 Cost of reproduction.
 
double repro_prob
 Reproduction probability.
 

Detailed Description

Struct that holds all species-specific parameters.

Constructor & Destructor Documentation

◆ SpeciesBaseParams() [1/2]

Utopia::Models::PredatorPreyPlant::SpeciesBaseParams::SpeciesBaseParams ( const Utopia::DataIO::Config cfg)
inline

Construct a species from a configuration node.

80 :
81 PredatorPrey::SpeciesBaseParams(cfg),
82 move_limit([&cfg](){
83 const auto lim = get_as<int>("move_limit", cfg);
84 return lim;
85 }())
86 {}
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213
unsigned int move_limit
Movement limit.
Definition species.hh:75

◆ SpeciesBaseParams() [2/2]

Utopia::Models::PredatorPreyPlant::SpeciesBaseParams::SpeciesBaseParams ( )
delete

Member Data Documentation

◆ move_limit

unsigned int Utopia::Models::PredatorPreyPlant::SpeciesBaseParams::move_limit

Movement limit.


The documentation for this struct was generated from the following file: