NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 NetLogo Publications
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 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.

The associated unit contains several iterations of this rollypolly 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)