Utopia 2
Framework for studying models of complex & adaptive systems.
|
Enumerations | |
enum class | Utopia::SelectionMode { Utopia::SelectionMode::condition = 0 , Utopia::SelectionMode::sample = 1 , Utopia::SelectionMode::probability = 2 , Utopia::SelectionMode::clustered_simple = 20 , Utopia::SelectionMode::position = 100 , Utopia::SelectionMode::boundary = 101 , Utopia::SelectionMode::lanes = 102 } |
Possible selection modes; availability depends on choice of manager. More... | |
Functions | |
std::string | Utopia::selection_mode_to_string (const SelectionMode &mode) |
Given a SelectionMode enum value, return the corresponding string key. | |
Variables | |
const std::map< std::string, SelectionMode > | Utopia::selection_mode_map |
A map from strings to Select enum values. | |
|
strong |
Possible selection modes; availability depends on choice of manager.
For further details, consult the actual implementations.
Enumerator | |
---|---|
condition | Select if a condition is fulfilled. |
sample | Select a random sample of entities with a known sample size. |
probability | Select an entity with a given probability. |
clustered_simple | Select entity clusters using a simple neighborhood-based algorithm. Uses the "simple" algorithm: From a given start population, iterate over neighbors and attach them with a certain probability.
|
position | (For CellManager only) Selects cells at given positions in space |
boundary | (For CellManager only) Select the boundary cells of a grid |
lanes | (For CellManager only) Selects horizontal or vertical lanes of cells |
std::string Utopia::selection_mode_to_string | ( | const SelectionMode & | mode | ) |
Given a SelectionMode enum value, return the corresponding string key.
This iterates over the selection_mode_map and returns the first key that matches the given enum value.
const std::map<std::string, SelectionMode> Utopia::selection_mode_map |
A map from strings to Select enum values.