Utopia
2
Framework for studying models of complex & adaptive systems.
|
Parameters specifying the immunity control. More...
#include <params.hh>
Public Types | |
using | TimesQueue = std::queue< std::size_t > |
Type of the times queue. More... | |
using | TimesValuesQueue = std::queue< std::pair< std::size_t, double > > |
The type of the change p_immune pairs. More... | |
Public Member Functions | |
ImmunityContParams (const DataIO::Config &cfg) | |
Configuration constructor. More... | |
Public Attributes | |
const bool | enabled |
Whether immunity control is enabled. More... | |
const std::size_t | num_additional_immunities |
The number of immunities added to the default p_expose. More... | |
TimesQueue | at_times |
Add additional immunities at these time steps. More... | |
TimesValuesQueue | change_p_immune |
Change p_immune to new value at given times. More... | |
Parameters specifying the immunity control.
using Utopia::Models::SEIRD::ImmunityContParams::TimesQueue = std::queue<std::size_t> |
Type of the times queue.
using Utopia::Models::SEIRD::ImmunityContParams::TimesValuesQueue = std::queue<std::pair<std::size_t, double> > |
The type of the change p_immune pairs.
|
inline |
Configuration constructor.
Construct an ImmunityContParams object with required parameters being extracted from a configuration node with the same parameter names.
|
mutable |
Add additional immunities at these time steps.
|
mutable |
Change p_immune 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_immune is set to new_value
const bool Utopia::Models::SEIRD::ImmunityContParams::enabled |
Whether immunity control is enabled.
const std::size_t Utopia::Models::SEIRD::ImmunityContParams::num_additional_immunities |
The number of immunities added to the default p_expose.