Adds disease infector information in agent.diseases, which will be necessary for drawing lines between infected agents and who they caught their diseases from for the disease network.
Modifies behavior of Disease objects to share between multiple agents rather than creating a new copy for each agent. disease.agent was never used and doesn't make sense following this change, so I removed it. We can readd a list of diseased agents for each Disease object if need be, but there's no reason to yet.
Simplifies the callstack from catchDisease, spreadDisease, addDisease down to just catchDisease. The naming was confusing and the functions unnecessarily tracked across files when all functionality can be contained in agent.py.
agent.diseases
, which will be necessary for drawing lines between infected agents and who they caught their diseases from for the disease network.Disease
objects to share between multiple agents rather than creating a new copy for each agent.disease.agent
was never used and doesn't make sense following this change, so I removed it. We can readd a list of diseased agents for eachDisease
object if need be, but there's no reason to yet.catchDisease
,spreadDisease
,addDisease
down to justcatchDisease
. The naming was confusing and the functions unnecessarily tracked across files when all functionality can be contained inagent.py
.