paulvangentcom / python_corona_simulation

An agent-based simulation of corona and other viruses in python
GNU General Public License v3.0
292 stars 76 forks source link

Modified the environment file so that he can create different buildings #35

Closed YaoAnthony closed 3 years ago

YaoAnthony commented 3 years ago

Good afternoon!

This time I tried to modify the environment file to have an Environment class as the aggregation root, which means all regions are generated and the hospital becomes a branch building. The advantage of this I think is we can build various buildings through the environment class and the case is encapsulated and clear.

Next time, I will combine my twice upload, to realize the behavior of going to the hospital when people are sick and waiting for treatment, if everything goes well, I can even design other behaviors based on this, such as stratifying by age, with the part of the population older than 24 choosing to go to a more intensive place (work etc)