IncidenceEventCoordinator
The IncidenceEventCoordinator monitors for individual-level events within a simulation and responds by broadcasting events when configurable thresholds are met. It does not distribute interventions directly; instead, it counts specified events using an Incidence_Counter and evaluates the accumulated count or percentage against thresholds defined in a Responder. The responder then broadcasts the appropriate event, which can trigger other campaign events or event coordinators.
The coordinator operates in a count-respond cycle:
- The Incidence_Counter listens for individual events specified in Trigger_Condition_List and counts them over a configurable number of timesteps (Count_Events_For_Num_Timesteps). Only events from individuals matching the demographic and property restrictions are counted.
- When the counting period ends, the Responder calculates the incidence value as a raw count or percentage (based on Threshold_Type).
- The responder selects the action from Action_List whose Threshold is the highest value that is still less than or equal to the calculated incidence.
- The selected action's Event_To_Broadcast event is broadcast as an individual, node, or coordinator event (based on Event_Type).
- If configured with repetitions, the cycle repeats after Timesteps_Between_Repetitions.
At a glance:
- Distributed to: Nodes
- Serialized: No, it needs to be redistributed when starting from a serialized file.
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 |
|---|---|---|---|---|---|
| Action_List | array of json objects | [] | List (array) of JSON objects, including the values specified in the following parameters: Threshold, Event_Type, Event_To_Broadcast. See example. | ||
| Coordinator_Name | string | NA | NA | "" | The unique identifying coordinator name, which is useful with the output report, ReportCoordinatorEventRecorder.csv. |
| Count_Events_For_Num_Timesteps | boolean | 0 | 1 | 1 | If set to true (1), then the waning effect values, as specified in the Effect_List list of objects for the WaningEffectCombo classes, are added together. If set to false (0), the waning effect values are multiplied. The resulting waning effect value cannot be greater than 1. |
| Demographic_Coverage | float | 0 | 1 | 1 | The fraction of individuals in the target demographic that are counted. |
| Event_To_Broadcast | string | NA | NA | "" | The action event to occur when the specified trigger value in the Threshold parameter is met. At least one action must be defined for Event_To_Broadcast. The events contained in the list can be built-in events (see Event list for possible events). |
| Event_Type | string | NA | NA | INDIVIDUAL | The type of event to be broadcast. Possible values are: * COORDINATOR * INDIVIDUAL * NODE |
| Incidence_Counter | array of json objects | NA | NA | NA | List of JSON objects for specifying the conditions and parameters that must be met for an incidence to be counted. Some of the values are specified in the following parameters: Count_Events_For_Num_Timesteps, Trigger_Condition_List, Node_Property_Restrictions. See example. |
| 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 parameters for more information. See example. |
| Number_Repetitions | integer | -1 | 10000 | 1 | The number of times an intervention is given, used with Timesteps_Between_Repetitions. A value of -1 implies an infinite number of repetitions. |
| 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 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. See example. |
| 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 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. |
| Responder | array of json objects | NA | NA | NA | List of JSON objects for specifying the threshold type, values, and the actions to take when the specified conditions and parameters have been met, as configured in the Incidence_Counter parameter. Some of the values are specified in the following parameters: * Threshold_Type * Action_List * Threshold * Event_To_Broadcast. See example. |
| Target_Age_Max | float | -3 | 9.32E+35 | 9.32E+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. |
| Threshold | float | 0 | 3.40282e+38 | 0 | The threshold value that triggers the specified action for the Event_To_Broadcast parameter. When you use the Threshold parameter you must also use the Event_To_Broadcast parameter. |
| Threshold_Type | enum | NA | NA | COUNT | Threshold type to indicate how Responder handles the count of events from Incidence_Counter and the thresholds in Action_List. Possible values are: * COUNT * PERCENTAGE. |
| Timesteps_Between_Repetitions | integer | -1 | 1000 | -1 | The repetition interval. |
| Trigger_Condition_List | array of strings | NA | NA | [] | A list of events that will trigger an intervention. See example. |
{
"Use_Defaults": 1,
"Events": [
{
"class": "CampaignEvent",
"Start_Day": 1,
"Nodeset_Config": {
"class": "NodeSetAll"
},
"Event_Coordinator_Config": {
"class": "IncidenceEventCoordinator",
"Coordinator_Name": "Incidence_Trigger",
"Number_Repetitions": -1,
"Timesteps_Between_Repetitions": 30,
"Incidence_Counter": {
"Count_Events_For_Num_Timesteps": 7,
"Demographic_Coverage": 1.0,
"Target_Demographic": "Everyone",
"Trigger_Condition_List": [
"NewInfectionEvent"
]
},
"Responder": {
"Threshold_Type": "COUNT",
"Action_List": [
{
"Threshold": 0,
"Event_To_Broadcast": "NoResponse",
"Event_Type": "COORDINATOR"
},
{
"Threshold": 50,
"Event_To_Broadcast": "Campaign_Start",
"Event_Type": "COORDINATOR"
}
]
}
}
}
]
}