Utopia  2
Framework for studying models of complex & adaptive systems.
Public Member Functions | Public Attributes | List of all members
Utopia::Models::PredatorPrey::PreyParams Struct Reference

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

#include <species.hh>

Inheritance diagram for Utopia::Models::PredatorPrey::PreyParams:
Inheritance graph
[legend]
Collaboration diagram for Utopia::Models::PredatorPrey::PreyParams:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

double p_flee
 Probability to flee from a predator if on the same cell. More...
 
- Public Attributes inherited from Utopia::Models::PredatorPrey::SpeciesBaseParams
double cost_of_living
 Cost of living that is taken each time step. More...
 
double resource_intake
 Resource intake from eating. More...
 
double repro_resource_requ
 Minimal reproduction resources requirements. More...
 
double resource_max
 Maximal resource level. More...
 
double repro_cost
 Cost of reproduction. More...
 
double repro_prob
 Reproduction probability. More...
 

Detailed Description

Struct that holds all prey-species specific parameters.

Constructor & Destructor Documentation

◆ PreyParams() [1/2]

Utopia::Models::PredatorPrey::PreyParams::PreyParams ( const Utopia::DataIO::Config cfg)
inline

Construct a prey object from a configuration node.

◆ PreyParams() [2/2]

Utopia::Models::PredatorPrey::PreyParams::PreyParams ( )
delete

The default constructor.

Member Data Documentation

◆ p_flee

double Utopia::Models::PredatorPrey::PreyParams::p_flee

Probability to flee from a predator if on the same cell.


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