BehaviourComposer: ignore everything before this.
I update a parameter by squaring the sine of the model global called time, then multiply this result by 10.Begin micro-behaviour
UPDATE-PARAMETER-REPEATEDLYBegin NetLogo code:
substitute-text-area-for columns: 72 parameter-nameEnd NetLogo codethe-grass-regrowth-time
You can change the name and the expression for updating the parameter.
DEFINE-PARAMETER defines parameters that this behaviour updates. UPDATE-PARAMETER updates parameters once. UPDATE-ATTRIBUTE-REPEATEDLY updates an attribute of an agent repeatedly. REPEATEDLY-DO-BEHAVIOURS repeats any sequence of behaviours.
This uses the NetLogo SET primitive command to update the value of the parameter. It uses the BehaviourComposer do-every command to schedule the updates repeatedly.
This was implemented by Ken Kahn on 27 October 2009.
BehaviourComposer: ignore everything after this.