model_functions.h Source File
|
CPP API
|
model_functions.h
Go to the documentation of this file.
44 ScalarType total_exposure_by_contacts(const ContactExposureRates& rates, const CellIndex cell_index,
56 ScalarType total_exposure_by_air(const AirExposureRates& rates, const CellIndex cell_index, const VirusVariant virus,
69 void add_exposure_contribution(AirExposureRates& local_air_exposure, ContactExposureRates& local_contact_exposure,
95 void interact(PersonalRandomNumberGenerator& personal_rng, Person& person, const Location& location,
108 bool change_location(Person& person, const Location& destination, const TransportMode mode = TransportMode::Unknown,
A class template for an array with custom indices.
Definition: custom_index_array.h:136
All Locations in the simulated Model where Persons gather.
Definition: location.h:92
Parameters of the simulation that are the same everywhere within the Model.
Definition: abm/parameters.h:764
Agents in the simulated Model that can carry and spread the Infection.
Definition: person.h:51
Random number generator of individual persons.
Definition: personal_rng.h:50
ParameterSet< MaximumContacts, ContactRates, UseLocationCapacityForTransmissions > LocalInfectionParameters
Parameters of the Infection that depend on the Location.
Definition: abm/parameters.h:758
ScalarType total_exposure_by_air(const AirExposureRates &rates, const CellIndex cell_index, const VirusVariant virus, const Parameters &global_params)
Compute the total virus exposure for aerosol transmission in a cell (unit: per day).
Definition: model_functions.cpp:57
bool change_location(Person &person, const Location &destination, const TransportMode mode, const std::vector< uint32_t > &cells)
Change a persons location to another location.
Definition: model_functions.cpp:162
void adjust_contact_rates(Location &location, size_t num_agegroups)
Adjust ContactRates of location by MaximumContacts.
Definition: model_functions.cpp:183
void interact(PersonalRandomNumberGenerator &personal_rng, Person &person, const Location &location, const PopulationByAge &local_population_by_age, const AirExposureRates &local_air_exposure, const ContactExposureRates &local_contact_exposure, const TimePoint t, const TimeSpan dt, const Parameters &global_parameters)
Let a Person interact with the population at its current Location, possibly getting infected.
Definition: model_functions.cpp:63
void normalize_exposure_contribution(ContactExposureRates &local_contact_exposure, const PopulationByAge &local_population_by_age)
Normalize contact exposure rate to average exposure per contact per time (from total exposure per tim...
Definition: model_functions.cpp:145
CustomIndexArray< boost::atomic< ScalarType >, CellIndex, VirusVariant > AirExposureRates
Definition: location.h:45
void add_exposure_contribution(AirExposureRates &local_air_exposure, ContactExposureRates &local_contact_exposure, const Person &person, const Location &location, const Parameters ¶ms, const TimePoint t, const TimeSpan dt)
Add the contribution of a person to the local exposure rates.
Definition: model_functions.cpp:113
@ Unknown
ScalarType total_exposure_by_contacts(const ContactExposureRates &rates, const CellIndex cell_index, const VirusVariant virus, const AgeGroup age_receiver, size_t age_receiver_group_size, const LocalInfectionParameters ¶ms)
Compute the total virus exposure for contact transmission in a cell (unit: per day).
Definition: model_functions.cpp:35
CustomIndexArray< boost::atomic< ScalarType >, CellIndex, VirusVariant, AgeGroup > ContactExposureRates
Definition: location.h:44
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Generated by