Skip to content

Commit

Permalink
Added rudimentary doc
Browse files Browse the repository at this point in the history
  • Loading branch information
KOVALW committed Dec 10, 2024
1 parent a38b04a commit 3c3eabe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/intervention.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Interventions

## Overview
Introducing interventions that affect the relative transmission potential in a given infection attempt, either through relative risk of the susceptible individual or through realtive infecitousness of the transmitter individual.

## Intervention manager
This trait extension on `Context` allows for querying population by infecitous status and facemask status.
We introduce the symmetrical function `query_relative_infectiousness` that uses a nested `HashMap` to ascertain the relative change in transmission potential. Taking a person Id, we obtain the facemask status and infectious status to query the float that determines risk. The `register_intervention` function then allows the nested `HashMap` to be created, registering the facemask and infectious status with the intervention container.

## Facemask Manager
Facemasks are currently randomly assigned at a given maskiong rate specified in the parameters input JSON using the `assign_facemask_status` function. The `init` function registers facemask and infectious status types to their respective relative transmission potentials and then assigns individuals to either have `Wearing` or `None` for the facemask intervention.

## Impact on transmission
Currently, the relative transmission potential effet of interventions are deployed in the `evaluate_transmission` function of the transmission manager. Now, the probability of a successful transmission event depends on the additive relative transmission potential of the transmitter and contact as a result of the intervention.

0 comments on commit 3c3eabe

Please sign in to comment.