event_coordinator
NChooserEventCoordinatorHIV
Bases: InterventionDistributorEventCoordinator
The NChooserEventCoordinatorHIV coordinator class distributes individual-level interventions to exactly N people of a targeted demographic in HIV simulations. This contrasts with other event coordinators that distribute an intervention to a percentage of the population, not to an exact count. This event coordinator is similar to the NChooserEventCoordinator for other simulation types, but replaces start and end days in TargetedDistribution with start and end years in TargetedDistributionHIV and includes HIV-specific restrictions that individuals must have in order to qualify for the intervention.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
(campaign, required)
|
|
required |
intervention_list
|
(list[IndividualIntervention], required)
|
|
required |
targeted_distributions
|
(list[TargetedDistributionHIV], required)
|
|
required |
Source code in emodpy_hiv/campaign/event_coordinator.py
__init__(campaign, intervention_list, targeted_distributions)
NChooserEventCoordinatorHIV class to create a
Source code in emodpy_hiv/campaign/event_coordinator.py
ReferenceTrackingEventCoordinatorTrackingConfig
Bases: InterventionDistributorEventCoordinator
The ReferenceTrackingEventCoordinatorTrackingConfig coordinator class defines a particular prevalence of an individual-level attribute that should be present in a population over time, and a corresponding intervention that will cause individuals to acquire that attribute. The coordinator tracks the actual prevalence of that attribute against the desired prevalence; it will poll the population of nodes it has been assigned to determine how many people have the attribute. When coverage is less than the desired prevalence, it will distribute enough of the designated intervention to reach the desired prevalence. This coordinator is similar to the ReferenceTrackingEventCoordinator, but allows an attribute in the population to be polled, not only the intervention itself having been received. This allows for tracking overall coverage when, potentially, multiple routes exist for individuals to have acquired the same target attribute.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
campaign
|
(campaign, required)
|
|
required |
intervention_list
|
(list[IndividualIntervention], required)
|
|
required |
time_value_map
|
(ValueMap, required)
|
|
required |
tracking_config
|
(AbstractTargetingConfig, required)
|
|
required |
end_year
|
float
|
|
2200
|
update_period
|
float
|
|
365
|
target_demographics_config
|
TargetDemographicsConfig
|
|
TargetDemographicsConfig(demographic_coverage=None)
|
property_restrictions
|
PropertyRestrictions
|
|
None
|
targeting_config
|
AbstractTargetingConfig
|
|
required |