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 behavioursStop when no one is susceptible stops when there is no longer any who can become infected. How this worksThis runs the Behaviours when no one is infected when there are no longer any infected individuals. HistoryThis was implemented by Ken Kahn on 3 February 2011. BehaviourComposer: ignore everything after this. |