![]() ![]() ![]() The keyword end marks the end of the commands in the procedure. Each procedure has a name, preceded by the keyword to. Commands and reporters built into NetLogo are called Primitives:ġ3 Procedures Commands and reporters you define yourself are called procedures. ![]() Reporters carry out some operation and report a result either to a command or another reporter. If you're a patch on the edge of the world, some of your "neighbors" are on the opposite edge.ġ2 Primitives Commands and reporters tell agents what to do:Ĭommands are actions for the agents to carry out. Every patch has the same number of "neighbor" patches. For speed, NetLogo always draws a turtle on- screen as if it were standing in the center of its patch, but in fact, the turtle can be positioned at any point within the patch.ġ1 Miscellaneous The world of patches isn't bounded, but "wraps" so when a turtle moves past the edge of the world, it disappears and reappears on the opposite edge. The each turtle has an identificator who. the standard mathematical coordinate plane The total number of patches is determined by the settings screen-edge-x and screen-edge-y.ġ0 Turtles Turtles have coordinates too: xcor and ycor. We call the patch's coordinates pxcor and pycor : integers. The patch in the center of the world has coordinates (0, 0). The observer doesn't have a location - you can imagine it as looking out over the world of turtles and patches.ĩ Patches Patches have coordinates. Each patch is a square piece of "ground" over which turtles can move. The world is two dimensional and is divided up into a grid of patches. In NetLogo, there are three types of agents: Turtles are agents that move around in the world. Each agent can carry out its own activity, all simultaneously. Agents areīeings that can follow instructions. Agents Procedures Variables Colors Ask Agentsets Breeds Synchronization Procedures (advanced) Lists Strings Turtle ShapesĨ Agents The NetLogo world is made up of agents. Powerful and flexible plotting system HubNet: participatory simulations using networked devices (including handhelds) Agent Monitors for inspecting agents BehaviorSpace: a tool used to collect data from multiple runs of a model Export and import functions (export data, save and restore state of model) Converts StarLogoT models into NetLogo modelsħ Programming Guide The following material explains some important features of programming in NetLogo. Interface builder w/ buttons, sliders, monitors, switches, Plots, text boxes.Ħ What is Netlogo? Info area for annotating your model Simple language structure Language is Logo dialect extended to support agents and parallelism Unlimited numbers of agents and variables Double precision arithmetic Many built-in primitives System Language EnvironmentĬross-platform: runs on MacOS, Windows, Linux, et al Web-enabled (run within a web browser or download and run locally) Models can be saved as applets to be embedded in web pagesĤ Features(Language) Language: Fully programmable This makes it possible to explore the connection between: the micro-level behavior of individuals the macro-level patterns that emerge from the interaction of many individuals.Ģ Features You can use the list below to help familiarize yourself with ![]() Modelers can give instructions to hundreds or thousands of independent "agents" all operating in parallel. 1 Netlogo! NetLogo is a programmable modeling environment for simulating complex systems. ![]()
0 Comments
Leave a Reply. |