33 m_logger->trace(
"Starting to populate Schools");
35 for (
const auto& loc : geoGrid) {
36 if (loc->GetPopCount() == 0) {
41 const vector<ContactPool*>& classes = geoGrid.GetNearbyPools(Id::K12School, *loc);
43 auto dist = m_rn_man.GetUniformIntGenerator(0, static_cast<int>(classes.size()), 0U);
46 for (
auto& pool : loc->RefPools(Id::Household)) {
48 if (AgeBrackets::K12School::HasAge(p->GetAge())) {
49 auto& c = classes[dist()];
51 p->SetPoolId(Id::K12School, c->GetId());
57 m_logger->trace(
"Done populating K12Schools");
Header file for the Person class.
Configuration data mostly for generating a population, but also for computing the required number of ...
Header for the core ContactPool class.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Namespace for the geographic and demograhic classes.
void Apply(GeoGrid &, const GeoGridConfig &)
Populate the ContactPools type ID. This is a placeholder for the specializations. ...
Store and handle person data.
Namespace for the simulator and related classes.
Namespace to manage types of ContactPool.