|
Lab 5 - Exploring Breeds
Turtles are agents that interact on the patches in Netlogo. Patches can also interact with turtles. Patches can “sprout” turtles, grow grass, present barriers for turtles, or provide energy for turtles. Turtles are not all alike. If we wish to model a predator-prey relationship, we can make different kinds (breeds) of turtles. Further, we can set up rules of interaction for those different breeds.
The idea for this lab comes from a sample program in NetLogo. Open the program and then open folders Biology, evolution to get to the Peppered Moth lab. Open the lab and click on the "Information" tab. A little history is given and some suggestions for what to look for and what to try. Run the program a few times and see what you can learn about the questions in the "Information" page. In the paragraph "Extending the Model" it is suggested that you could modify the model to better simulate the idea presented here. In the "Netlogo Features" it is pointed out that you could add the birds, which are the primary predators to the model, by adding another breed called "Birds"
This is what we will do in this lab. As well as add the genetics crosses to the program.
Before we go further, you need to save a new copy of the model. Go to File, and select SAVE AS. Then give the model a new name with the extension .nlogo.
First, let’s add birds to the program. Begin at the interface tab. Add a slider to set the number of birds (call it num-birds) to start. You may need to rearrange the sliders so you have room to do this. Now tab to the procedures and add the breed “birds” under the moth breed. Also, these birds need to be able to die if they are poor hunters so, define a “birds own” variable called energy. In the setup portion, add a line to setup birds. After the to setup moths add the setup for the birds like this:
|