Libraries‎ > ‎Epidemics‎ > ‎

Stop when no one is susceptible

BehaviourComposer: ignore everything before this.
When there are no longer any susceptible individuals stop and add to the log.
Begin micro-behaviour

Stop when no one is susceptible 

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

Variants

text

Related behaviours

Stop when no one infected stops when there is no longer anyone who can infect.

How this works

This runs the Behaviours when no one left to infected when there are no longer any susceptible individuals.

History

This was implemented by Ken Kahn on 3 February 2011.

BehaviourComposer: ignore everything after this.
Comments