dime-worldbank / Disease-Modelling-SSA

This repository contains the code for an agent-based model used for COVID-19 in Sub-Saharan Africa. The original code was written in Python by Aivin Solatorio and is since being developed in Java. Complimentary risk modelling has been conducted in R as an intermediate product and is also part of this repo
MIT License
6 stars 2 forks source link

change declaration of simulation object #34

Closed RobertManningSmith closed 1 month ago

RobertManningSmith commented 3 months ago

changed simulation object properties, model options are now turned on or off in parameter file

RobertManningSmith commented 3 months ago

This pull request makes two changes,

The first is that the simulation object no has fewer parameters, with simulation options being read into the file via the parameters, rather than being specifically declared.

The next change is where possible, string variable have been replaced with various enums. In the person object, sex and occupations are now enums. They are read in from the census file as strings but are then converted into enums when the person object is created.

Behaviour nodes, as well as the tests which use the names of behaviour nodes (infectious behaviour testing) now make used of enums throughout, with no defining of Strings which could lead to error