printable form - The Center for Connected Learning and Computer ...
printable form - The Center for Connected Learning and Computer ...
printable form - The Center for Connected Learning and Computer ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
NetLogo 3.0.2 User Manual<br />
Table of Contents<br />
FAQ (Frequently Asked Questions)<br />
Programming.......................................................................................................................160<br />
How is the NetLogo language different from the StarLogoT language? How do I<br />
convert my StarLogoT model to NetLogo?.............................................................160<br />
How does the NetLogo language differ from other Logos?............................................160<br />
<strong>The</strong> NetLogo world is a torus, that is, the edges of the screen are connected to<br />
each other, so turtles <strong>and</strong> patches "wrap around". Can I use a different world<br />
topology: bounded, infinite plane, sphere, etc.?......................................................162<br />
How do I take the negative of a number?......................................................................162<br />
My turtle moved <strong>for</strong>ward 1, but it's still on the same patch. Why?.................................162<br />
patch−ahead 1 is reporting the same patch my turtle is already st<strong>and</strong>ing on. Why?.....162<br />
How do I give my turtles "vision"?..................................................................................163<br />
Can agents sense what's in the drawing layer?.............................................................163<br />
Does NetLogo have a comm<strong>and</strong> like StarLogo's "grab" comm<strong>and</strong>?.............................163<br />
I tried to put −at after the name of a variable, <strong>for</strong> example variable−at −1 0, but<br />
NetLogo won't let me. Why not?.............................................................................163<br />
I'm getting numbers like 0.10000000004 <strong>and</strong> 0.799999999999 instead of 0.1 <strong>and</strong><br />
0.8. Why?................................................................................................................164<br />
How can I keep two turtles from occupying the same patch?........................................164<br />
How can I find out if a turtle is dead?.............................................................................164<br />
How do I find out how much time has passed in my model?.........................................164<br />
Does NetLogo have arrays?..........................................................................................164<br />
Does NetLogo have associative arrays or lookup tables?.............................................165<br />
How can I use different patch "neighborhoods" (circular, Von Neumann, Moore,<br />
etc.)?.......................................................................................................................165<br />
Can I connect turtles with lines, to indicate connections between them?......................165<br />
How can I convert an agentset to a list, or vice versa?..................................................165<br />
What if I want to "ask" an agentset in r<strong>and</strong>om order?....................................................165<br />
How does NetLogo decide when to switch from agent to agent when running code?...166<br />
Primitives Dictionary.....................................................................................................................167<br />
Categories of Primitives.......................................................................................................167<br />
Turtle−related.................................................................................................................167<br />
Patch−related primitives.................................................................................................167<br />
Agentset primitives.........................................................................................................167<br />
Color primitives..............................................................................................................168<br />
Control flow <strong>and</strong> logic primitives.....................................................................................168<br />
World primitives..............................................................................................................168<br />
Perspective primitives....................................................................................................168<br />
HubNet primitives...........................................................................................................168<br />
Input/output primitives....................................................................................................168<br />
File primitives.................................................................................................................168<br />
List primitives.................................................................................................................168<br />
String primitives..............................................................................................................169<br />
Mathematical primitives..................................................................................................169<br />
Plotting primitives...........................................................................................................169<br />
Movie primitives.............................................................................................................169<br />
System primitives...........................................................................................................169<br />
vii