Utopia  2
Framework for studying models of complex & adaptive systems.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Utopia::Models::SEIRD::State Struct Reference

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. More...
 

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. More...
 

Public Attributes

Kind kind
 The cell state. More...
 
bool immune
 Whether the agent is immune. More...
 
double p_transmit
 
unsigned exposed_time
 The time passed since first being exposed. More...
 
unsigned age
 The age of the cell. More...
 
unsigned num_recoveries
 The number of recoveries. More...
 
unsigned int cluster_id
 An ID denoting to which cluster this cell belongs. More...
 

Detailed Description

The full cell struct for the SEIRD model.

Constructor & Destructor Documentation

◆ State()

template<class RNG >
Utopia::Models::SEIRD::State::State ( const DataIO::Config cfg,
const std::shared_ptr< RNG > &  rng 
)
inline

Construct the cell state from a configuration and an RNG.

Member Function Documentation

◆ initialize_p_transmit()

template<typename RNG >
static double Utopia::Models::SEIRD::State::initialize_p_transmit ( const DataIO::Config cfg,
const std::shared_ptr< RNG > &  rng 
)
inlinestatic

Initialize p_transmit from a configuration node.

Member Data Documentation

◆ age

unsigned Utopia::Models::SEIRD::State::age

The age of the cell.

◆ cluster_id

unsigned int Utopia::Models::SEIRD::State::cluster_id

An ID denoting to which cluster this cell belongs.

◆ exposed_time

unsigned Utopia::Models::SEIRD::State::exposed_time

The time passed since first being exposed.

◆ immune

bool Utopia::Models::SEIRD::State::immune

Whether the agent is immune.

◆ kind

Kind Utopia::Models::SEIRD::State::kind

The cell state.

◆ num_recoveries

unsigned Utopia::Models::SEIRD::State::num_recoveries

The number of recoveries.

◆ p_transmit

double Utopia::Models::SEIRD::State::p_transmit

The probability to transmit the infection to others if exposed or infected


The documentation for this struct was generated from the following file: