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-behaviourUPDATE-PARAMETER-REPEATEDLY Begin NetLogo code:substitute-text-area-for columns: 72 parameter-nameEnd NetLogo code VariantsYou can change the name and the expression for updating the parameter. Related Micro-behavioursDEFINE-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. How this worksThis 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. HistoryThis was implemented by Ken Kahn on 27 October 2009. BehaviourComposer: ignore everything after this. |
Projects‎ > ‎PredatorPreySimpleBehaviours‎ > ‎