bahriaa uni Cafeteria 2
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 table_patches5 tablem-x tablem-y tablef-x tablef-y female male ] breed [persons person] breed [waiters waiter] persons-own[ time_to_leave] to setup clear-all setup-tabels make-student reset-ticks end to make-student create-persons n--students [ choose-sex ;; become a man or a woman set size 1.5 setxy 16 0.5 set shape "person" set time_to_leave random 2 ] end to choose-sex ;; turtle procedure set color one-of [pink blue] end to go ask persons[ lt random 30 rt random 30 fd 0.1 setxy random-pxcor random-pycor ask persons with [color = blue and xcor >= tablem-x + 5 and ycor >= tablem-y + 5] [ stop fd 0] ask persons with [color = pink and xcor >= tablef-x + 5 and ycor >= tablef-y + 5 ] [ stop fd 0] ] tick end to setup-tables ask patch -13 66 [ set pcolor yellow ] end to setup-tabels ask patches [ set pcolor white ] set table_patches1 patches with [ pxcor = 11 and pycor = -8 ] ask table_patches1 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -1 and pycor = -13] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = 7 and pycor = -8 ] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = 9 and pycor = -8 ] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -5 and pycor = -13] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -5 and pycor = -13] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -3 and pycor = -13] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -13 and pycor = 0] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -11 and pycor = -0] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -9 and pycor = 0] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = 2 and pycor = 1] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = 5 and pycor = 1] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set table_patches4 patches with [ pxcor = -9 and pycor = 0] ask table_patches4 [ set pcolor pink ask neighbors4 [ set pcolor pink ] ] set counter_patches patches with [ pxcor >= -10 and pycor > 5 ] ask counter_patches [ set pcolor yellow ] set student_patches patches with [ pxcor >= -10 and pycor = 5 ] ask student_patches [set pcolor green ] end
There is only one version of this model, created over 7 years ago by Abdullah yousaf.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
bahriaa uni Cafeteria 2.png | preview | Preview for ' bahriaa uni Cafeteria 2' | over 7 years ago, by Abdullah yousaf | Download |
This model does not have any ancestors.
This model does not have any descendants.