Libraries‎ > ‎Library‎ > ‎Logging‎ > ‎

Log specified behaviours

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

Whenever a behaviour in the specified list is added to this agent, the event is logged in the output window.

End description

Log specified behaviours

Begin NetLogo code:

substitute-text-area-for behaviour-names "Die" "Turn"                   
set log-behaviours [behaviour-names] ; quoted and separated by spaces

End NetLogo code

Variants

You can edit the text area to name any micro-behaviours.

How this works

This sets a flag that the generated NetLogo uses to output the log area if a behaviour is added and in the specified list.

Related micro-behaviours

Log all behaviours adds to the output area when any micro-behaviour is added.

History

Log specified behaviours was implemented by Ken Kahn.

BehaviourComposer: ignore everything after this.

Comments