Libraries‎ > ‎Epidemics‎ > ‎

Stop when no one infected

BehaviourComposer: ignore everything before this.
I stop and print a message when there are no longer any infected individuals.
Begin micro-behaviour

Stop when no one infected

Begin NetLogo code:
when [not any? all-infected and time >= 1]     [add-behaviours list-of-micro-behaviours "Behaviours when no one is infected" []]
End NetLogo code

Related behaviours

Stop when no one is susceptible stops when there is no longer any who can become infected.

How this works

This runs the Behaviours when no one is infected when there are no longer any infected individuals.

History

This was implemented by Ken Kahn on 3 February 2011.

BehaviourComposer: ignore everything after this.