Organizing Model 1
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
THINGS TO NOTICE
(suggested things for the user to notice while running the model)
THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
;; this is a simple model involving the convertion of one breed to another. This simulation mimics a simple recruitment process. ;; this model assumes that all non-mice are easily convertible. breed [ cats cat ] breed [ mice mouse ] ;; to setup the agents, here is the command. Here, there are two breeds defined: cats and mice. The cats try to catch and convert the mice into cats. to setup clear-all reset-ticks create-mice nummice [ set color white setxy random-xcor random-ycor ] create-cats numcats [ set color red setxy random-xcor random-ycor ] end ;;Here are the procedures. This specifies the actions/interaction between cats and mice. Cats pursue the nearest mouse and convert it. The converts will seek other mice to convert. The process goes on until all mice are converted into cats. to go ask mice [ forward 1 set heading random 360 ] ask cats [ if any? mice [ face one-of mice ] if not any? mice [ stop ] ] ask cats [ forward 1] ask cats [ let current-cat self ask mice with [ distance current-cat < 2 ] [ set breed cats ;; mice is recruited to cats set color red ] ] tick end to plot-agents plot count cats plot count mice end
There are 2 versions of this model.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Organizing Model 1.png | preview | Preview for 'Organizing Model 1' | about 10 years ago, by CJ Castillo | Download |
This model does not have any ancestors.
This model does not have any descendants.