Libraries‎ > ‎Library‎ > ‎Miscellaneous‎ > ‎

Add NetLogo declaration

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

Specifies declarations that will be added to the generated NetLogo file.

End description

Add NetLogo
declaration

Begin NetLogo code:

substitute-text-area-for netlogo-declaration extensions [gis]
add-declaration netlogo-declaration

End NetLogo code

Further Information

A NetLogo program contains optional declarations (extensionsbreed, <BREED>-own) in any order. Multiple breeds may be declared with separate breed declarations; the other declarations may appear once only. NetLogo also has declarations that the Behaviour Composer automates and need not be declared (globalsturtles-own,  and patches-own).

Profiling example for speeding up your model

To discover what parts of your program are taking the most time to run you can add the Profiler extension. Change this micro-behaviour to load 'profile' and add this profile procedure.  Then if you enter profile-command 100 into the command centre the next 100 ticks will be profiled.

History

Add NetLogo declaration was implemented by Ken Kahn on 17 May, 2013.

BehaviourComposer: ignore everything after this.

Comments