Utopia 2
Framework for studying models of complex & adaptive systems.
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
Utopia::Models::ContDisease Namespace Reference

Classes

class  ContDisease
 Contagious disease model on a grid. More...
 
struct  InfectionContParams
 Parameters specifying the infection control. More...
 
struct  Params
 Parameters of the ContDisease. More...
 
struct  State
 The full cell struct for the ContDisease model. More...
 

Typedefs

using CDCellTraits = Utopia::CellTraits< State, Update::manual >
 
using CDTypes = ModelTypes<>
 Typehelper to define data types of ContDisease model.
 

Enumerations

enum class  Kind : char {
  empty = 0 , tree = 1 , infected = 2 , source = 3 ,
  stone = 4
}
 The kind of the cell: empty, tree, infected, source, stone. More...
 

Typedef Documentation

◆ CDCellTraits

Specifies the type of each cells' state as first template argument and the update mode as second.

See Utopia::CellTraits for more information.

◆ CDTypes

Typehelper to define data types of ContDisease model.

Enumeration Type Documentation

◆ Kind

The kind of the cell: empty, tree, infected, source, stone.

Enumerator
empty 

Unoccupied.

tree 

Cell represents a tree.

infected 

Cell is infected.

source 

Cell is an infection source: constantly infected, spreading infection.

stone 

Cell cannot be infected.

9 : char {
11 empty = 0,
13 tree = 1,
15 infected = 2,
17 source = 3,
19 stone = 4
20};
@ empty
Every entity is utterly alone in the world.
@ stone
Cell cannot be infected.
@ source
Cell is an infection source: constantly infected, spreading infection.
@ tree
Cell represents a tree.