Utopia  2
Framework for studying models of complex & adaptive systems.
Classes | Typedefs | Enumerations
Utopia::Models::PredatorPreyPlant Namespace Reference

Classes

struct  State
 Cell state, combining states for predator, prey and plant species. More...
 
class  PredatorPreyPlant
 PredatorPreyPlant Model on grid cells. More...
 
struct  PlantState
 Struct that holds all plant characterising states. More...
 
struct  PlantParams
 The parameters characterizing plants. More...
 
struct  SpeciesBaseParams
 Struct that holds all species-specific parameters. More...
 
struct  PredatorParams
 Struct that holds all predator-specific parameters. More...
 
struct  PreyParams
 Struct that holds all prey-species specific parameters. More...
 
struct  SpeciesParams
 The parameter of all species. More...
 

Typedefs

using CellTraits = Utopia::CellTraits< State, Update::manual >
 Cell traits specialization using the state type. More...
 
using ModelTypes = ModelTypes<>
 Typehelper to define data types of PredatorPreyPlant model. More...
 

Enumerations

enum class  GrowthModel { none , deterministic , stochastic }
 The growth model to use for plants. More...
 

Typedef Documentation

◆ CellTraits

Cell traits specialization using the state type.

The first template parameter specifies the type of the cell state, the second sets them to not be synchronously updated. The config constructor for the cell state is preferred here

◆ ModelTypes

Typehelper to define data types of PredatorPreyPlant model.

Enumeration Type Documentation

◆ GrowthModel

The growth model to use for plants.

Enumerator
none 

Plant level is ignored; prey are always able to eat.

deterministic 

Once eaten, a plant requires regen_time time to regenerate.

stochastic 

Once eaten, a plant regrows with probability regen_prob