|
Utopia 2
Framework for studying models of complex & adaptive systems.
|
Parameters specifying the infection control. More...
#include <params.hh>
Public Types | |
| using | TimesQueue = std::queue< std::size_t > |
| Type of the times queue. | |
| using | TimesValuesQueue = std::queue< std::pair< std::size_t, double > > |
| The type of the change p_infection pairs. | |
Public Member Functions | |
| InfectionContParams (const DataIO::Config &cfg) | |
| Configuration constructor. | |
Public Attributes | |
| const bool | enabled |
| Whether infection control is enabled. | |
| const std::size_t | num_additional_infections |
| The number of infections added to the default p_infect. | |
| TimesQueue | at_times |
| Add additional infections at these time steps. | |
| TimesValuesQueue | change_p_infect |
| Change p_infect to new value at given times. | |
Parameters specifying the infection control.
| using Utopia::Models::ContDisease::InfectionContParams::TimesQueue = std::queue<std::size_t> |
Type of the times queue.
| using Utopia::Models::ContDisease::InfectionContParams::TimesValuesQueue = std::queue<std::pair<std::size_t, double> > |
The type of the change p_infection pairs.
|
inline |
Configuration constructor.
Construct an InfectionContParams object with required parameters being extracted from a configuration node with the same parameter names.
|
mutable |
Add additional infections at these time steps.
|
mutable |
Change p_infect to new value at given times.
Each element of this container provides a pair of [time, new_value]. If the iteration step (time) of the simulation is reached p_infect is set to new_value
Whether infection control is enabled.
| const std::size_t Utopia::Models::ContDisease::InfectionContParams::num_additional_infections |
The number of infections added to the default p_infect.