|
Stride Reference Manual
- generated for commit 9643b11
|
Simulator can time step and reveal some of the key data. More...
#include <Sim.h>

Public Member Functions | |
| std::shared_ptr< Calendar > | GetCalendar () const |
| Calendar for the simulated world. More... | |
| std::string | GetConfigValue (const std::string &attribute) const |
| Get the Sim configuration for the given attribute. More... | |
| std::shared_ptr< Population > | GetPopulation () |
| Get the population. More... | |
| double | GetTransmissionProbability () const |
| Get the stored transmission probability. More... | |
| util::RnMan & | RefRnManager () |
| Get the random number manager. More... | |
| const TransmissionProfile & | RefTransmissionProfile () const |
| Get the transmission profile. More... | |
| void | TimeStep () |
| Run one time step, computing full simulation (default) or only index case. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Sim > | Create (const boost::property_tree::ptree &config, std::shared_ptr< Population > pop, util::RnMan rnMan) |
| Create Sim initialized by the configuration in property tree and population. More... | |
| static std::shared_ptr< Sim > | Create (const std::string &configString, std::shared_ptr< Population > pop, util::RnMan rnMan) |
| For use in python environment: create Sim using configuration string i.o. ptree. More... | |
Private Member Functions | |
| Sim () | |
| Constructor for empty Simulator. More... | |
Private Attributes | |
| boost::property_tree::ptree | m_config |
| Configuration property tree. More... | |
| ContactLogMode::Id | m_contact_log_mode |
| Specifies contact/transmission logging mode. More... | |
| unsigned int | m_num_threads |
| The number of (OpenMP) threads. More... | |
| bool | m_track_index_case |
| General simulation or tracking index case. More... | |
| bool | m_adaptive_symptomatic_behavior |
| Should symptomatic cases stay home? More... | |
| std::shared_ptr< Calendar > | m_calendar |
| Management of calendar. More... | |
| AgeContactProfiles | m_contact_profiles |
| Contact profiles w.r.t age. More... | |
| std::vector< ContactHandler > | m_handlers |
| Contact handlers (rng & rates). More... | |
| InfectorExec * | m_infector |
| Executes contacts/transmission loops in contact pool. More... | |
| std::shared_ptr< Population > | m_population |
| Pointer to the Population. More... | |
| util::RnMan | m_rn_man |
| Random number generation management. More... | |
| TransmissionProfile | m_transmission_profile |
| Profile of disease. More... | |
| PublicHealthAgency | m_public_health_agency |
| Agency to implement reactive strategies. More... | |
Friends | |
| class | SimBuilder |
Simulator can time step and reveal some of the key data.
The Subject base class used for the interaction with the python environment only.
|
explicitprivate |
Constructor for empty Simulator.
Definition at line 39 of file Sim.cpp.
References Create(), stride::ContactLogMode::None, and SimBuilder.

|
static |
Create Sim initialized by the configuration in property tree and population.
Referenced by stride::SimController::Control(), stride::StanController::Control(), Create(), and Sim().

|
static |
For use in python environment: create Sim using configuration string i.o. ptree.
Definition at line 58 of file Sim.cpp.
References Create(), and stride::util::RunConfigManager::FromString().

|
inline |
Calendar for the simulated world.
Initialized with the start date in the simulation world. Use GetCalendar()->GetSimulationDay() for the number of days simulated.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void stride::Sim::TimeStep | ( | ) |
Run one time step, computing full simulation (default) or only index case.
Definition at line 63 of file Sim.cpp.
References stride::ContactType::College, stride::PublicHealthAgency::Exec(), stride::ContactType::IdList, stride::ContactType::K12School, m_adaptive_symptomatic_behavior, m_calendar, m_contact_profiles, m_handlers, m_infector, m_population, m_public_health_agency, m_rn_man, m_transmission_profile, stride::Population::RefContactLogger(), stride::Population::RefPoolSys(), stride::util::SegmentedVector< T, N, Safe >::size(), and stride::ContactType::Workplace.

|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Executes contacts/transmission loops in contact pool.
Definition at line 94 of file Sim.h.
Referenced by TimeStep().
|
private |
|
private |
|
private |
|
private |
Agency to implement reactive strategies.
Definition at line 99 of file Sim.h.
Referenced by TimeStep().