24 : m_people(), m_commutes(), m_inputStream(
std::move(inputStream)), m_population(pop)
30 const auto a = geoGrid.
GetById(std::get<0>(commute_tuple));
31 const auto b = geoGrid.
GetById(std::get<1>(commute_tuple));
32 const auto amount = std::get<2>(commute_tuple);
33 a->AddOutgoingCommute(b, amount);
34 b->AddIncomingCommute(a, amount);
void AddCommutes(GeoGrid &geoGrid)
Add the commutes that were found to their respective Locations symmetrically.
GeoGridReader(std::unique_ptr< std::istream > inputStream, stride::Population *pop)
Parametrized constructor.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Key Data structure: container for (a) all individuals in the population (b) the ContactPoolSys wchich...
Namespace for the geographic and demograhic classes.
std::vector< std::tuple< unsigned int, unsigned int, double > > m_commutes
std::shared_ptr< Location > GetById(unsigned int id) const
Gets a Location by Id and check if the Id exists.