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

Relocate functions in order to implement aggregate patterns #29

Closed MrP29 closed 3 years ago

MrP29 commented 3 years ago

I have recently been taught an Aggregate Design Pattern and I wonder if I can implement the aggregate in this project. In this case, I Implemented an aggregate pattern by relocating functions used for other classes in path_planning.py to infection.py and motion.py in order to make the each class an Aggregate root. Additionally, I fixed a typo in comment.

ps. If my modification does not make sense, it would be great to receive your feedback.