Stride Reference Manual
- generated for commit 9643b11
|
Populator uses geo & pop data to populate ContactPools in the GeoGrid. More...
#include <Populator.h>
Public Member Functions | |
Populator (stride::util::RnMan &rnMan, std::shared_ptr< spdlog::logger > logger=nullptr) | |
Construct with a RnMan and a logger. More... | |
~Populator ()=default | |
Default is OK. More... | |
void | Apply (GeoGrid &, const GeoGridConfig &) |
Populate the ContactPools type ID. This is a placeholder for the specializations. More... | |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &geoGridConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &geoGridConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &ggConfig) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &) |
template<> | |
void | Apply (GeoGrid &geoGrid, const GeoGridConfig &geoGridConfig) |
Protected Attributes | |
stride::util::RnMan & | m_rn_man |
RnManager used by populators. More... | |
std::shared_ptr< spdlog::logger > | m_logger |
Logger used by populators. More... | |
Populator uses geo & pop data to populate ContactPools in the GeoGrid.
Definition at line 36 of file Populator.h.
|
inlineexplicit |
Construct with a RnMan and a logger.
Definition at line 40 of file Populator.h.
References stride::util::LogUtils::CreateNullLogger(), geopop::Populator< ID >::m_logger, and geopop::Populator< ID >::~Populator().
|
default |
Default is OK.
Referenced by geopop::Populator< ID >::Populator().
|
inline |
Populate the ContactPools type ID. This is a placeholder for the specializations.
Definition at line 51 of file Populator.h.
void geopop::Populator< stride::ContactType::Id::College >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | geoGridConfig | ||
) |
Definition at line 33 of file CollegePopulator.cpp.
References AssertThrow, geopop::GeoGridConfig::fraction_college_commuters, geopop::GeoGridConfig::param, and geopop::GeoGridConfig::participation_college.
void geopop::Populator< stride::ContactType::Id::Household >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | geoGridConfig | ||
) |
Definition at line 29 of file HouseholdPopulator.cpp.
References geopop::GeoGridConfig::ages, stride::Population::CreatePerson(), geopop::GeoGrid::GetPopulation(), and geopop::GeoGridConfig::refHH.
void geopop::Populator< stride::ContactType::Id::K12School >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | |||
) |
Definition at line 31 of file K12SchoolPopulator.cpp.
void geopop::Populator< stride::ContactType::Id::K12School >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::College >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::Workplace >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::Household >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::PrimaryCommunity >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::SecondaryCommunity >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | ggConfig | ||
) |
void geopop::Populator< stride::ContactType::Id::PrimaryCommunity >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | |||
) |
Definition at line 29 of file PrimaryCommunityPopulator.cpp.
void geopop::Populator< stride::ContactType::Id::SecondaryCommunity >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | |||
) |
Definition at line 32 of file SecondaryCommunityPopulator.cpp.
void geopop::Populator< stride::ContactType::Id::Workplace >::Apply | ( | GeoGrid & | geoGrid, |
const GeoGridConfig & | geoGridConfig | ||
) |
Definition at line 36 of file WorkplacePopulator.cpp.
References AssertThrow, geopop::GeoGridConfig::fraction_college_commuters, geopop::GeoGridConfig::fraction_workplace_commuters, stride::AgeBrackets::Workplace::HasAge(), geopop::GeoGridConfig::info, geopop::GeoGridConfig::param, geopop::GeoGridConfig::particpation_workplace, geopop::GeoGridConfig::popcount_college, and geopop::GeoGridConfig::popcount_workplace.
|
protected |
RnManager used by populators.
Definition at line 51 of file Populator.h.
|
protected |
Logger used by populators.
Definition at line 55 of file Populator.h.
Referenced by geopop::Populator< ID >::Populator().