Creator

class archABM.creator.Creator(env: simpy.core.Environment, config: dict, db: archABM.database.Database)[source]

Initializes the required assets to run a simulation: Options, AerosolModel, Event, Place, Actions, Person.

env: simpy.core.Environment
config: dict
db: archABM.database.Database
create_options()archABM.options.Options[source]

Initializes general Options for the simulation.

Returns

general Options for the simulation

Return type

Options

create_events()List[archABM.event_model.EventModel][source]

Initializes list of EventModel and their respective Parameters.

Returns

types of events or activities

Return type

List[EventModel]

create_places()List[archABM.place.Place][source]

Initializes list of Place and their respective Parameters.

Returns

list of available places

Return type

List[Place]

create_actions()archABM.actions.Actions[source]

Initializes instance of class Actions.

Returns

instance of class Actions

Return type

Actions

create_people()List[archABM.person.Person][source]

Initializes list of Person and their respective Parameters.

It also sets the status of certain Person from susceptible to infected. This is controlled by the ratio_infected configuration parameter.

Returns

simulation people

Return type

List[Person]

create_model()[source]

Initializes the selected COVID19 aerosol model.

At the moment, there are three models available:

  1. AerosolModelColorado: COVID-19 Airborne Transmission Estimator [MNJ+21, PBB+21, PJ21]

  2. AerosolModelMIT: MIT COVID-19 Indoor Safety Guideline [BB21, BKC+21, RBJ+21]

  3. AerosolModelMaxPlanck: Model Calculations of Aerosol Transmission and Infection Risk of COVID-19 in Indoor Environments [LHB+20]

Returns

selected aerosol model

Return type

AerosolModel