1#ifndef UTOPIA_MODELS_CONTDISEASE_STATE_HH
2#define UTOPIA_MODELS_CONTDISEASE_STATE_HH
9enum class Kind :
char {
46 if (std::uniform_real_distribution<double>(0., 1.)(*rng)
YAML::Node Config
Type of a variadic dictionary-like data structure used throughout Utopia.
Definition types.hh:71
Container select_entities(const Manager &mngr, const DataIO::Config &sel_cfg)
Select entities according to parameters specified in a configuration.
Definition select.hh:213
Definition ContDisease.hh:18
Kind
The kind of the cell: empty, tree, infected, source, stone.
Definition state.hh:9
@ stone
Cell cannot be infected.
@ source
Cell is an infection source: constantly infected, spreading infection.
@ infected
Cell is infected.
@ tree
Cell represents a tree.
The full cell struct for the ContDisease model.
Definition state.hh:23
unsigned age
The age of the cell.
Definition state.hh:28
Kind kind
The cell state.
Definition state.hh:25
unsigned int cluster_id
An ID denoting to which cluster this cell belongs.
Definition state.hh:31
State(const DataIO::Config &cfg, const std::shared_ptr< RNG > &rng)
Construct the cell state from a configuration and an RNG.
Definition state.hh:35