NetLogo banner

Home
Download
Help
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo Models Library:
Curricular Models/CT-STEM

(back to the library)

Habitat Preference Behavior

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

This model recreates a rollypolly experiment with two chambers in conditions decided by the user. The two possible conditions are moist or dry. Users can also set which condition rollypollies prefer. The rollypollies start in the middle and move towards their preferred chambers when the experiment starts.

HOW IT WORKS

The user selects conditions for each of the chambers using the two choosers and the preferred conditions for the rollypollies. The rollypollies will move around randomly each second (which maps to one tick in NetLogo). The only exception to this is when rollypollies are in their preferred environment. When this happens they will only move randomly half the time.

HOW TO USE IT

  1. Select the number of rollypollies in the experiment using the NUMBER-OF-ROLLYPOLLIES slider.
  2. Select the condition for chamber 1 and chamber 2 using the CONDITION-IN-CHAMBER1 and CONDITION-IN-CHAMBER2 choosers. Also type in which condition should be the preferred condition in the PREFERRED-CONDITIONS input.
  3. Press the SETUP button.
  4. Press the GO button and observe the plots on the right.
  5. It is possible to update chamber conditions and preferred conditions in the middle of the experiment. If you choose to update the chamber conditions use the CONDITION-IN-CHAMBER1 and CONDITION-IN-CHAMBER2 choosers. If you choose to update the preferred conditions use the PREFERRED-CONDITIONS input box.
  6. Use the RECORD DATA button to see how the rollypollies are distributed between the two chambers. Each click corresponds with one data instance at the current time point.

NUMBER-OF-ROLLYPOLLIES is a slider that ranges from 0-50. It controls the number of rollypollies in the model.

CONDITION-IN-CHAMBER1 and CONDITION-IN-CHAMBER2 are choosers that control the condition of the chambers. The two options are dry or moist.

PREFERRED-CONDITIONS is an input box that sets the preferred condition. The user must type in dry or moist for it to be effective.

THINGS TO NOTICE

Does changing the number of rollypollies in the chambers affect anything?

Is there a difference between the rollypollies preferring dry conditions or moist conditions?

THINGS TO TRY

Try changing the preferred condition in the middle of the experiment. What happens as a result of this? Hint: Use the plots to help you.

Try changing the chamber conditions in the middle of the experiment. What happens as a result of this?

CURRICULAR USE

This model was incorporated into an Animal Behavior Experimental Lab which was designed for high school Advanced Placement (AP) Biology students. Within the lab, these students simulated agent-level interactions to model their prior hands-on lab experiments. This lab aims to have students develop an understanding of experimental design, data collection, and data analysis by conducting a laboratory experiment and using a computational model to study the behavior of pillbugs, also called 'roly-polies' (Armadillidium vulgare).

The associated unit contains several iterations of this rollypolly model:

  • The basic model is used in Lesson 4 Page 3 Students use the model to make observations and conduct experiments regarding habitat preference behavior of rollypollies. This model does not include the data recording features. It still displays the graph and monitor for rollypollies in each chamber but lacks the Rollypolly Distribution graph.

  • An introductory model with suggested time intervals is used in Lesson 4 Page 1 Students are asked to record data after different time intervals and across different numbers of rollypollies. They are expected to learn about the nuances of experimental design (large sample size, multiple trials, etc.). This model is similar to the basic model in that it still displays the graph and monitor for rollypollies in each chamber but lacks the Rollypolly Distribution graph. Instead, this model includes two buttons which allow for the model to advance 5 seconds (ticks) or 30 seconds along with the usual continuous GO button. This allows for the user to see the rollypollies movement more clearly and makes it easier to manually record data after different time intervals and across different numbers of rollypollies.

  • The model extended with CODAP, a data science tool is used in Lesson 5 Page 1 Students use a computationally enhanced data collection method to record and analyze data using CODAP, a computational tool for data visualization and analysis. This model also displays the graph and monitor for rollypollies in each chamber but lacks the Rollypolly Distribution graph. This model also keeps the RUN-FOR-30-TICKS button from the introductory model but gets rid of the RUN-FOR-5-TICKS button. The biggest difference of this model is the integration with CODAP which is used to allow for users to easily record data and analyze data.

  • The model extended with CODAP and experiment features is used in Lesson 5 Page 2 Students use a computationally enhanced data collection method to record and analyze data using CODAP, a computational tool for data visualization and analysis. This model is similar to the model extended with CODAP but there are two extra features used to make running an experiment easier. There are two extra sliders, NUMBER-OF-READINGS (0-100) and NUMBER-OF-TICKS-BETWEEN-READINGS (0-50), and one extra button RUN-A-TRIAL. These extra features allow for the model to automatically run the model and record the data to quickly perform an experiment.

  • A NetTango version that allows students to code with programming blocks is used in Lesson 6 Page 1 Students use a block-based coding environment, NetTango, to code habitat preference behavior. This model is completely different from the previous models in that this is a NetTango model which has the goal of teaching students how to program the model behavior using blocks. There is only a SETUP and GO button with an initially blank NetLogo code tab. Users replicate the previous models by using the blocks provided to add code to the model.

EXTENDING THE MODEL

This is a very simple model that is easy to extend. Here are some ideas on things to implement in the model:

  • Try changing the percentage of the time the rollypollies don't move when they are in their preferred conditions.
  • Try implementing a new condition such as wet.
  • Try adding a new chamber into the VIEW.

NETLOGO FEATURES

This model uses the INPUT widget of NetLogo to allow user set the PREFERRED-CONDITION by rollypollies, in effect, allowing the user to edit the code of the model without having to search through the CODE tab.

RELATED MODELS

Checkout the Bug Hunt Speeds in the Models Library.

HOW TO CITE

If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.

For the model itself:

Please cite the NetLogo software as:

This model was developed as part of the CT-STEM Project at Northwestern University and was made possible through generous support from the National Science Foundation (grants CNS-1138461, CNS-1441041, DRL-1020101, DRL-1640201 and DRL-1842374) and the Spencer Foundation (Award #201600069). Any opinions, findings, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the funding organizations. For more information visit https://ct-stem.northwestern.edu/.

Special thanks to the CT-STEM models team for preparing these models for inclusion in the Models Library including: Kelvin Lao, Jamie Lee, Sugat Dabholkar, Sally Wu, and Connor Bain.

COPYRIGHT AND LICENSE

Copyright 2020 Uri Wilensky.

CC BY-NC-SA 3.0

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.

(back to the NetLogo Models Library)