Open dybber opened 3 years ago
The agents shouldn't be responsible for updating model parameters, such as
model.infected -= 1 model.immune += 1
Instead these aggregates should be calculated by the model itself, e.g. when needed for the bar plot.
Instead, a Person-object should have a state variable, e.g. self.state, which starts out as "NORMAL", changes to "INFECTED", to "IMMUNE"
self.state
The agents shouldn't be responsible for updating model parameters, such as
Instead these aggregates should be calculated by the model itself, e.g. when needed for the bar plot.
Instead, a Person-object should have a state variable, e.g.
self.state
, which starts out as "NORMAL", changes to "INFECTED", to "IMMUNE"