simulation of bahria
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
globals [ student_patches counter_patches table_patches1 table_patches2 table_patches3 table_patches4 ] breed [waiters waiter] to setup clear-all setup-cafeteria reset-ticks end to setup-cafeteria make-tables make-students make-waiters end to make-tables ask patches [ set pcolor white ] set counter_patches patches with [ pxcor >= 0 and pycor > 14 ] ask counter_patches [ set pcolor black ] set table_patches1 patches with [ pxcor = -8 and pycor = 10 ] ask table_patches1 [ set pcolor blue + 3 ask neighbors4 [ set pcolor orange ] ] set table_patches2 patches with [ pxcor = -8 and pycor = -13 ] ask table_patches2 [ set pcolor blue + 3 ask neighbors4 [ set pcolor orange ] ] set table_patches3 patches with [ pxcor = -8 and pycor = -4 ] ask table_patches3 [ set pcolor blue + 3 ask neighbors4 [ set pcolor orange ] ] set table_patches4 patches with [ pxcor = 9 and pycor = 2 ] ask table_patches4 [ set pcolor blue + 3 ask neighbors4 [ set pcolor orange ] ] set table_patches4 patches with [ pxcor = 9 and pycor = -8 ] ask table_patches4 [ set pcolor blue + 3 ask neighbors4 [ set pcolor orange ] ] end to make-students set-default-shape turtles "circle" create-ordered-turtles no_of_students [ set xcor -3 + who set ycor -16 set size 0.8 set color blue ;;move-to-empty-one-of student_patches ] end to move-same-students set size 1 set heading 0 setxy (10 + random -22) min-pycor end to make-waiters create-waiters number-of-waiters [ set shape "person" set color violet set size 1 set xcor 14 + who set ycor 14 ] end to go ask turtles [ move-students ] tick end to move-students fd random 1.5 end
There is only one version of this model, created over 7 years ago by Ayesha Anwar.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.