BehaviourComposer: ignore everything before this.
If I am susceptible then with the-infection-odds I become infected.
Begin micro-behaviour
Become infected
Begin NetLogo code:
do-if my-state = "susceptible" ; if I'm susceptible [do-with-probability the-infection-odds ; and the infection occurs [add-behaviours list-of-micro-behaviours "Infection Behaviours" []]]
End NetLogo code
If I am susceptible then with the odds given by the-infection-odds slider I add the Infection Behaviours.
This was implemented by Ken Kahn on 3 February 2011.
BehaviourComposer: ignore everything after this.