Libraries‎ > ‎Library‎ > ‎

Log specified patch attributes

BehaviourComposer: ignore everything before this.

I place in the output window a log of the values of the listed patch attributes.

Begin micro-behaviour

Log specified patch attributes

Begin NetLogo code:
substitute-text-area-for attribute-names "energy-of-patch" "water-of-patch" 
set log-patch-attributes [attribute-names] ; quoted and separated by spaces
End NetLogo code

Related Micro-behaviours

LOG-SPECIFIED-ATTRIBUTES is an example of selectively logging attributes. You can also log behaviours using LOG-ALL-BEHAVIOURS and LOG-SPECIFIED-BEHAVIOURS. SPECIFY-OUTPUT-AREA specifies up the dimensions and placement of the output area.

History

This was implemented by Ken Kahn on 3 June 2011.


BehaviourComposer: ignore everything after this.
Comments