Utopia 2
Framework for studying models of complex & adaptive systems.
|
The full cell struct for the SEIRD model. More...
#include <state.hh>
Public Member Functions | |
template<class RNG > | |
State (const DataIO::Config &cfg, const std::shared_ptr< RNG > &rng) | |
Construct the cell state from a configuration and an RNG. | |
Static Public Member Functions | |
template<typename RNG > | |
static double | initialize_p_transmit (const DataIO::Config &cfg, const std::shared_ptr< RNG > &rng) |
Initialize p_transmit from a configuration node. | |
Public Attributes | |
Kind | kind |
The cell state. | |
bool | immune |
Whether the agent is immune. | |
double | p_transmit |
unsigned | exposed_time |
The time passed since first being exposed. | |
unsigned | age |
The age of the cell. | |
unsigned | num_recoveries |
The number of recoveries. | |
unsigned int | cluster_id |
An ID denoting to which cluster this cell belongs. | |
The full cell struct for the SEIRD model.
|
inline |
Construct the cell state from a configuration and an RNG.
|
inlinestatic |
Initialize p_transmit from a configuration node.
unsigned Utopia::Models::SEIRD::State::age |
The age of the cell.
An ID denoting to which cluster this cell belongs.
unsigned Utopia::Models::SEIRD::State::exposed_time |
The time passed since first being exposed.
bool Utopia::Models::SEIRD::State::immune |
Whether the agent is immune.
Kind Utopia::Models::SEIRD::State::kind |
The cell state.
unsigned Utopia::Models::SEIRD::State::num_recoveries |
The number of recoveries.
double Utopia::Models::SEIRD::State::p_transmit |
The probability to transmit the infection to others if exposed or infected