ABM Basics 1 Flashcards
What does a model usually do?
The code simulates interactions between different types of agents
What does the ‘setup’ button do?
Setup button is meant to create the starting conditions for the simulation
How do you initiate and stop a simulation?
You press the go button
What happens when you press the ‘once’ and or ‘forever’ button?
Once buttons do one action then stop, forever buttons keep on going
What are patches, turtles, observer, agents in NetLogo?
Patches - the spatial domain where agents can go
Turtles - agents that move around the patches
Agents - divided into patches and turtles; beings that can follow instructions
True or False: Both color and pcolor are “variables”
True
What’s the difference between pcolor and color variables
the color variable is a turtle variable, while the pcolor variable is a patch variable.
How can you make a simple setup button code for a Simple Crime Triangle Model?
to setup
clear-all
create-turtles 100 [ setxy random-xcor random-ycor ]
reset-ticks
end
What’s the purpose of indenting lines of code?
Helpful because it makes the code easier to read and change
What word does every procedure start and end with
starts with - to
ends with - end