REPEATEDLY-DO-BEHAVIOURSBegin NetLogo code:
substitute-text-area-for columns: 71 cycle-duration 1 substitute-text-area-for columns: 80 rows: 5 comment ; Notes do-every cycle-duration [add-behaviours list-of-micro-behaviours "Behaviours" ] commentEnd NetLogo code
Just add micro-behaviours to the list by clicking on a micro-behaviour and navigating back to this page. Change the number in the box to change the delay between cycles. Note that the micro-behaviours added should not themselves use do-every or the like but should run once.
ADD-BEHAVIOURS -- Adds behaviours
ADD-BEHAVIOURS-TO -- Adds behaviours immediately to a specified agent or set of agents
ADD-BEHAVIOURS-TO-LINKS -- Adds micro-behaviours to links (rather than agents)
REMOVE-BEHAVIOURS -- Removes behaviours
REMOVE-BEHAVIOURS-FROM -- Removes specified behaviours from an agent or set of agents
REMOVE-ALL-BEHAVIOURS -- Remove all behaviours
REMOVE-ALL-BEHAVIOURS-FROM -- Removes all behaviours from an agent or set of agents
DO-WITH-PROBABILITY -- Adds behaviours probabilistically
DO-WITH-PROBABILITIES -- Choose which set of behaviours to add probabilistically
REPEATEDLY-DO-BEHAVIOURS -- Adds behaviours repeatedly
DO-AFTER -- Delays the addition of a list of micro-behaviours
DO-AFTER-SETUP -- Delays the addition of a list of micro-behaviours until setup has completed
DO-AT-TIME -- Schedules the addition of a list of micro-behaviours
DO-IF -- Runs actions if condition is true
DO-IF-ELSE -- Runs one set of actions if condition is true and another set if condition is false
WHEN -- Adds and removes micro-behaviours the first time that conditions are true
WHENEVER -- Adds and removes micro-behaviours every time conditions are true
This uses the Modelling4All NetLogo command do-every to schedule the addition of the micro-behaviours. The micro-behaviours typically only run once and remove themselves.
This was first implemented by Ken Kahn on 6 October 2009.