Event counter report (ReportEventCounter.json)

The event counter report is a JSON-formatted file that keeps track of how many of each event types occurs during a time step. The report produced is similar to the InsetChart.json channel report, where there is one channel for each event defined in the configuration file (config.json).

The output file is named ReportEventCounter.json, and is produced via the libreporteventcounter.dll file. See Custom reporters for information on using using dynamic link library (DLL) files.

Configuration

The following parameters need to be configured to generate the report:

Parameter name

Data type

Min

Max

Default

Description

Start_Day

float

0

3.40E+38

0

The day to start collecting data for the report.

Duration_Days

float

0

3.40E+38

3.40E+38

The duration of simulation days over which to report events.

Report_Description

string

NA

NA

NA

Name of the report (it augments the filename of the report). If multiple CSV reports are being generated, this allows the user to distinguish one report from another.

Nodeset_Config

JSON object

NA

NA

NA

An object that specifies in which nodes the interventions will be distributed.

Event_Trigger_List

list of strings

NA

NA

NA

The list of event triggers for the events included in the report.

Channels

The channels section contains the following parameters:

Parameter

Data type

Description

<Event Names>

string

The name of the event.

Data

array

An array of event counts where each entry is the number of events that occurred during the timestep.

Units

string

Empty string, but it is the ‘event count’.

Example

The following is an example of ReportEventCounter.json.

{
    "Header": {
        "Channels": 4,
        "DTK_Version": "4148 Malaria-Ongoing (bb265ad) May 16 2019 09:39:35",
        "DateTime": "Tue Mar 12 15:16:08 2019",
        "Report_Type": "InsetChart",
        "Report_Version": "3.2",
        "Simulation_Timestep": 1,
        "Start_Time": 0,
        "Timesteps": 3
    },
    "Channels": {
        "Births": {
            "Data": [
                0,
                1,
                1
            ],
            "Units": ""
        },
        "EveryUpdate": {
            "Data": [
                1000,
                1001,
                1002
            ],
            "Units": ""
        },
        "NewInfectionEvent": {
            "Data": [
                110,
                0,
                2
            ],
            "Units": ""
        },
        "NonDiseaseDeaths": {
            "Data": [
                0,
                0,
                0
            ],
            "Units": ""
        }
    }
}