mobility_rules.cpp File Reference

CPP API: mobility_rules.cpp File Reference
mobility_rules.cpp File Reference
#include "abm/mobility_rules.h"
#include "abm/person.h"
#include "abm/random_events.h"
#include "abm/location_type.h"
#include "abm/parameters.h"
Include dependency graph for mobility_rules.cpp:

Namespaces

 mio
 A collection of classes to simplify handling of matrix shapes in meta programming.
 
 mio::abm
 

Functions

Rules for mobility between Locations.
Parameters
[in,out]rngPersonalRandomNumberGenerator for the person.
[in]pPerson the rule is applied to.
[in]tCurrent time.
[in]dtLength of the time step.
[in]paramsMobility parameters.
Returns
Location that the Person moves to if the rule is applied, the current Location of the person if the rule is not applied because of age, time, etc.
LocationType mio::abm::get_buried (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint t, TimeSpan dt, const Parameters &params)
 Persons in the icu go to cemetery when they are dead. More...
 
LocationType mio::abm::go_to_event (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint t, TimeSpan dt, const Parameters &params)
 Persons might go to social events. More...
 
LocationType mio::abm::go_to_hospital (PersonalRandomNumberGenerator &rng, const Person &p, TimePoint t, TimeSpan dt, const Parameters &params)
 Infected Persons may be hospitalized. More...
 
LocationType mio::abm::go_to_icu (PersonalRandomNumberGenerator &rng, const Person &p, TimePoint t, TimeSpan dt, const Parameters &params)
 Persons in the hospital may be put in intensive care. More...
 
LocationType mio::abm::go_to_quarantine (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint, TimeSpan, const Parameters &)
 Persons who are in quarantine should go home. More...
 
LocationType mio::abm::go_to_school (PersonalRandomNumberGenerator &rng, const Person &p, TimePoint t, TimeSpan dt, const Parameters &params)
 School age children go to school in the morning and return later in the day. More...
 
LocationType mio::abm::go_to_shop (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint t, TimeSpan dt, const Parameters &params)
 Adults may go shopping in their free time. More...
 
LocationType mio::abm::go_to_work (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint t, TimeSpan dt, const Parameters &params)
 Adults go to work in the morning and return later in the day. More...
 
LocationType mio::abm::random_mobility (PersonalRandomNumberGenerator &rng, const Person &p, TimePoint t, TimeSpan dt, const Parameters &params)
 Completely random mobility to any other Location. More...
 
LocationType mio::abm::return_home_when_recovered (PersonalRandomNumberGenerator &rng, const Person &person, TimePoint t, TimeSpan dt, const Parameters &params)
 Persons in the hospital/icu return home when they recover. More...