30 #include <boost/property_tree/ptree.hpp> 50 static std::shared_ptr<Sim> Create(
const boost::property_tree::ptree& config, std::shared_ptr<Population> pop,
54 static std::shared_ptr<Sim> Create(
const std::string& configString, std::shared_ptr<Population> pop,
util::RnMan rnMan);
58 std::shared_ptr<Calendar>
GetCalendar()
const {
return m_calendar; }
61 std::string
GetConfigValue(
const std::string& attribute)
const {
return m_config.get<std::string>(attribute); }
TransmissionProfile m_transmission_profile
Profile of disease.
std::shared_ptr< Population > GetPopulation()
Get the population.
Contact profiles stored in simulator.
unsigned int m_num_threads
The number of (OpenMP) threads.
AgeContactProfiles m_contact_profiles
Contact profiles w.r.t age.
Header for the TransmissionProfile class.
InfectorExec * m_infector
Executes contacts/transmission loops in contact pool.
ContactLogMode::Id m_contact_log_mode
Specifies contact/transmission logging mode.
std::shared_ptr< Calendar > m_calendar
Management of calendar.
bool m_track_index_case
General simulation or tracking index case.
Builds a simulator based a configuration property tree.
Header for the InfectorExec class.
PublicHealthAgency m_public_health_agency
Agency to implement reactive strategies.
Header for the ContactHandler class.
const TransmissionProfile & RefTransmissionProfile() const
Get the transmission profile.
Simulator can time step and reveal some of the key data.
double GetTransmissionProbability() const
Get the stored transmission probability.
std::vector< ContactHandler > m_handlers
Contact handlers (rng & rates).
std::shared_ptr< Calendar > GetCalendar() const
Calendar for the simulated world.
bool m_adaptive_symptomatic_behavior
Should symptomatic cases stay home?
boost::property_tree::ptree m_config
Configuration property tree.
util::RnMan m_rn_man
Random number generation management.
Header for the ContactLogMode class.
std::string GetConfigValue(const std::string &attribute) const
Get the Sim configuration for the given attribute.
util::RnMan & RefRnManager()
Get the random number manager.
void( InfectorExec)(ContactPool &pool, const AgeContactProfile &profile, const TransmissionProfile &trans_profile, ContactHandler &c_handler, unsigned short int sim_day, std::shared_ptr< spdlog::logger > c_logger)
For use in the InfectorMap and Sim; executes infector.
Transmission probabilities from disease data.
std::shared_ptr< Population > m_population
Pointer to the Population.
Header for the PublicHealthAgency class.
Namespace for the simulator and related classes.