Utopia
2
Framework for studying models of complex & adaptive systems.
|
Classes | |
struct | Counters |
A struct holding counters for state transitions and other global counters. More... | |
struct | ExposureContParams |
Parameters specifying the exposure control. More... | |
struct | ImmunityContParams |
Parameters specifying the immunity control. More... | |
struct | TransmitContParams |
Parameters specifying the transmit control. More... | |
struct | Params |
Parameters of the SEIRD. More... | |
class | SEIRD |
SEIRD model on a grid. More... | |
struct | State |
The full cell struct for the SEIRD model. More... | |
Typedefs | |
using | CDCellTraits = Utopia::CellTraits< State, Update::manual > |
using | CDTypes = ModelTypes<> |
Typehelper to define data types of SEIRD model. More... | |
Enumerations | |
enum class | Kind : char { empty = 0 , susceptible = 1 , exposed = 2 , infected = 3 , recovered = 4 , deceased = 5 , source = 6 , inert = 7 , COUNT = 8 } |
The kind of the cell. More... | |
Variables | |
const std::map< const std::string, Kind > | kind_from_string |
Map the Kind name given as a string to the actual Kind. More... | |
const std::map< const Kind, std::string > | string_from_kind |
The inverse of the kind_from_string mapping. More... | |
const std::array< std::string, static_cast< char >Kind::COUNT)> | kind_names |
The associated string names of each Kind enum entry. More... | |
using Utopia::Models::SEIRD::CDCellTraits = typedef Utopia::CellTraits<State, Update::manual> |
Specifies the type of each cells' state as first template argument and the update mode as second.
See Utopia::CellTraits for more information.
using Utopia::Models::SEIRD::CDTypes = typedef ModelTypes<> |
Typehelper to define data types of SEIRD model.
|
strong |
The kind of the cell.
Enumerator | |
---|---|
empty | Unoccupied. |
susceptible | Cell represents a susceptible. |
exposed | Cell is exposed to the dease but not yet infected. |
infected | Cell is infected. |
recovered | Cell is recovered. |
deceased | Cell is deceased. |
source | Cell is an infection source: constantly infected, spreading infection. |
inert | Cell does not partake in the dynamics. |
COUNT | The number of kinds (COUNT)
|
const std::map<const std::string, Kind> Utopia::Models::SEIRD::kind_from_string |
Map the Kind name given as a string to the actual Kind.
const std::array<std::string, static_cast<char>Kind::COUNT)> Utopia::Models::SEIRD::kind_names |
The associated string names of each Kind enum entry.
The indices of this array correspond to the char value used when writing out data. It thus is a mapping from char to Kind names, which is a mapping that is useful to have on frontend side.
const std::map<const Kind, std::string> Utopia::Models::SEIRD::string_from_kind |
The inverse of the kind_from_string
mapping.
This can be used to retrieve a string corresponding to a certain Kind value