Skip to content

CalendarEventCoordinator

The CalendarEventCoordinator coordinator class distributes individual-level interventions at a specified time and coverage. See the following JSON example and table, which shows all available parameters for this event coordinator.

Note

Parameters are case-sensitive. For Boolean parameters, set to 1 for true or 0 for false. Minimum, maximum, or default values of "NA" indicate that those values are not applicable for that parameter.

EMOD does not use true defaults; that is, if the dependency relationships indicate that a parameter is required, you must supply a value for it. However, many of the tools used to work with EMOD will use the default values provided below.

JSON format does not permit comments, but you can add "dummy" parameters to add contextual information to your files. Any keys that are not EMOD parameter names will be ignored by the model.

The table below describes all possible parameters with which this class can be configured. The JSON example that follows shows one potential configuration.

Parameter Type Min Max Default Description
Distribution_Coverages array of floats 0 1 0 A vector of floats for the fraction of individuals that will receive this intervention in a CalendarEventCoordinator.
Distribution_Times array of integers 1 2.14748E+09 0 A vector of integers for simulation times at which distribution of events occurs in a CalendarEventCoordinator. These times must be in ascending order.
Intervention_Config json object NA NA NA The nested JSON of the actual intervention to be distributed by this event coordinator.
Node_Property_Restrictions array of json objects NA NA NA A list of the NodeProperty key:value pairs, as defined in the demographics file, that nodes must have to be targeted by the intervention. See IndividualProperties and NodeProperties parameters for more information.
You can specify AND and OR combinations of key:value pairs with this parameter. See example.
Property_Restrictions array of json objects NA NA NA A list of the IndividualProperty key:value pairs, as defined in the demographics file, that individuals must have to be targeted by this intervention. See IndividualProperties and NodeProperties parameters for more information.
To specify AND and OR combinations of key:value pairs, use Property_Restrictions_Within_Node. You cannot use both of these parameters in the same event coordinator.
Property_Restrictions_Within_Node array of json objects NA NA NA A list of the IndividualProperty key:value pairs, as defined in the demographics file, that individuals must have to be targeted by this intervention. See IndividualProperties and NodeProperties parameters for more information.
This parameter allows you to specify AND and OR combinations of key:value pairs. You may specify individual property restrictions using either this parameter or Property_Restrictions, but not both. See example.
Target_Age_Max float 0 9.3228e+35 9.3228e+35 The upper end of ages targeted for an intervention, in years. Used when Target_Demographic is set to ExplicitAgeRanges or ExplicitAgeRangesAndGender.
Target_Age_Min float 0 9.3228e+35 0 The lower end of ages targeted for an intervention, in years. Used when Target_Demographic is set to ExplicitAgeRanges or ExplicitAgeRangesAndGender.
Target_Demographic enum NA NA Everyone The target demographic group. Possible values are:
Everyone
ExplicitAgeRanges
ExplicitAgeRangesAndGender
ExplicitGender
* ExplicitDiseaseState
Target_Gender enum NA NA All Specifies the gender restriction for the intervention. Possible values are:
Male
Female
* All
Target_Residents_Only boolean 0 1 0 When set to true (1), the intervention is only distributed to individuals that began the simulation in the node (i.e. those that claim the node as their residence).
Targeting_Config json object NA NA NA Be more selective of individuals by using the Targeting_Config classes. See example.
{
    "Events": [
        {
            "class": "CampaignEvent",
            "Event_Name": "High-risk vaccination",
            "Start_Day": 1,
            "Nodeset_Config": {
                "class": "NodeSetAll"
            },
            "Event_Coordinator_Config": {
                "class": "CalendarEventCoordinator",
                "Demographic_Coverage": 1,
                "Property_Restrictions": [
                    "Risk:High"
                ],
                "Number_Repetitions": 1,
                "Timesteps_Between_Repetitions": 0,
                "Target_Demographic": "Everyone",
                "Target_Residents_Only": 1,
                "Distribution_Times": [100, 200, 400, 800, 1200],
                "Distribution_Coverages": [0.01, 0.05, 0.1, 0.2, 1.0],
                "Intervention_Config": {
                    "class": "SimpleVaccine",
                    "Cost_To_Consumer": 0,
                    "Vaccine_Take": 1,
                    "Vaccine_Type": "AcquisitionBlocking",
                    "Waning_Config": {
                        "class": "WaningEffectBox",
                        "Initial_Effect": 1,
                        "Box_Duration": 1825
                    }
                }
            }
        }
    ]
}