BehaviourComposer: ignore everything before this.
Begin description: Add behaviours to a link or links. End description
Add behaviours to links
Begin NetLogo code:
substitute-text-area-for the-links my-out-links substitute-text-area-for delay 0 ask the-links [add-link-behaviours-after delay list-of-micro-behaviours "Link Behaviours" ]
End NetLogo code
Add micro-behaviours to the list by clicking on the micro-behaviour and navigating back to this page. You can delay this by editing the field that contains 0. You can change the expression that specifies the link or links involved. See the NetLogo section of the manual on links for details.
This uses add-link-behaviours-after to run the listed behaviours.
Note only some behaviours make sense for a link. For example, Color works fine but Shape makes no sense. Links can be created using Adds an undirected link with another, Adds a directed link from another, Adds a directed link to another, and Add undirected links with a set of agents.
Add behaviours to links was first implemented by Ken Kahn on 6 October 2009.
BehaviourComposer: ignore everything after this.