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

Cell State struct. More...

#include <PredatorPrey.hh>

Collaboration diagram for Utopia::Models::PredatorPrey::State:
Collaboration graph
[legend]

Public Member Functions

template<class RNGType >
 State (const DataIO::Config &cfg, const std::shared_ptr< RNGType > &rng)
 Construct a cell state with the use of a RNG. More...
 

Public Attributes

SpeciesState predator
 The state a predator on this cell has. More...
 
SpeciesState prey
 The state a prey on this cell has. More...
 
bool moved_predator
 Flag to indicate if the predator on this cell has already moved
More...
 

Detailed Description

Cell State struct.

Constructor & Destructor Documentation

◆ State()

template<class RNGType >
Utopia::Models::PredatorPrey::State::State ( const DataIO::Config cfg,
const std::shared_ptr< RNGType > &  rng 
)
inline

Construct a cell state with the use of a RNG.

Member Data Documentation

◆ moved_predator

bool Utopia::Models::PredatorPrey::State::moved_predator

Flag to indicate if the predator on this cell has already moved

◆ predator

SpeciesState Utopia::Models::PredatorPrey::State::predator

The state a predator on this cell has.

◆ prey

SpeciesState Utopia::Models::PredatorPrey::State::prey

The state a prey on this cell has.


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