CampaignEvent
The CampaignEvent event class determines when to distribute the intervention based on the first day of the simulation. See the following JSON example and table, which shows all available parameters for this campaign event.
Note
1 2 3 4 5 6 7 8 9 10 11 | |
The table below describes all possible parameters with which this class can be configured. The JSON example that follows shows one potential configuration.
| Parameter | Example | Description | Type | Min | Max | Default |
|---|---|---|---|---|---|---|
| Event_Coordinator_Config | link | An object that specifies how the event is handled by the simulation. It specifies which Event Coordinator class will handle the event, and then configures the coordinator. This description starts with specifying class, and then the other fields depend on the class. | JSON object | nan | nan | nan |
| Event_Name | link | The optional name used to refer to this event as a means to differentiate it from others that use the same class. | string | nan | nan | nan |
| Nodeset_Config | link | An object that specifies in which nodes the interventions will be distributed. Set to one of the . | JSON object | nan | nan | nan |
| Start_Day | link | The day of the simulation to activate the event's event coordinator. Depending on the event coordinator and intervention, this may indicate when to distribute an intervention or when to begin listening for a trigger. | float | -1 | 3.40282e+38 | 1 |
Nodeset_Config classes
The following classes determine in which nodes the event will occur.
NodeSetAll
The event will occur in all nodes in the simulation. This class has no associated parameters. For example,
{
"Nodeset_Config": {
"class": "NodeSetAll"
}
}
NodeSetNodeList
The event will occur in the nodes listed by Node ID.
| Parameter | Example | Description | Type | Min | Max | Default |
|---|---|---|---|---|---|---|
| Node_List | link | A comma-separated list of node IDs in which this event will occur. | array of integers | nan | nan | nan |
NodeSetPolygon
The event will occur in the nodes that fall within a given polygon.
| Parameter | Example | Description | Type | Min | Max | Default |
|---|---|---|---|---|---|---|
| Polygon_Format | link | The type of polygon to create. Currently, SHAPE is the only supported value. | enum | nan | nan | SHAPE |
| Vertices | link | Comma-separated list of latitude/longitude points that bound a polygon. | string | nan | nan | UNINTIALIZED STRING |