Bahria_university_cafeteria_v2
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
turtles-own [count-down birth-tick servingtime orderitem ] breed [servers server] to setup reset-ticks ca make-server make-student make-tables make-seats end to make-student reset-ticks create-turtles Student [ setxy random-pxcor random-pycor set shape "person" set size 1.5 set birth-tick ticks set count-down waitingtime ] ask turtles [choose-gender] end to choose-gender set color one-of [yellow blue] end to make-server set-default-shape servers "person" set-default-shape servers "person" ask patches with [pycor > 12 ][set pcolor blue] ask n-of 3 (patches with [pcolor = blue]) [sprout-servers 1 [set color yellow set size 3 ]] end to make-tables ask patches with[pxcor >= -8 and pxcor <= -4 and pycor >= -7 and pycor <= -4] [set pcolor pink] ask patches with[pxcor >= -2 and pxcor <= 2 and pycor >= 4 and pycor <= 7] [set pcolor pink] ask patches with[pxcor >= 9 and pxcor <= 13 and pycor >= -3 and pycor <= 0] [set pcolor pink] ask patches with[pxcor >= -13 and pxcor <= -9 and pycor >= 10 and pycor <= 13] [set pcolor pink] end to make-seats ask patches with[pxcor >= -13 and pxcor <= -9 and pycor >= 15 and pycor <= 16] [set pcolor red] ask patches with[pxcor >= -13 and pxcor <= -9 and pycor >= 7 and pycor <= 8] [set pcolor red] ask patches with[pxcor >= -2 and pxcor <= 2 and pycor >= 1 and pycor <= 2] [set pcolor red] ask patches with[pxcor >= -2 and pxcor <= 2 and pycor >= 9 and pycor <= 10] [set pcolor red] ask patches with[pxcor >= -8 and pxcor <= -4 and pycor >= -10 and pycor <= -9] [set pcolor red] ask patches with[pxcor >= -8 and pxcor <= -4 and pycor >= -2 and pycor <= -1] [set pcolor red] ask patches with[pxcor >= 9 and pxcor <= 13 and pycor >= 2 and pycor <= 3] [set pcolor red] ask patches with[pxcor >= 9 and pxcor <= 13 and pycor >= -6 and pycor <= -5] [set pcolor red] end to go move-student tick if ticks >= 1500 [stop] end to move-student ; ask turtles[ ;lt random 30 ; rt random 30 ; fd 0.1 ; ] ;end ask turtles with [color = yellow ] [ ifelse pcolor != red [continue] [stay] ] ask turtles with [color = blue ] [ ifelse pcolor != red [continue] [stay] ] end To continue lt random 10 rt random 10 fd 2 end to separate-student if any? other turtles-here [ fd 1 separate-student ] end to stay set count-down count-down - 1 ;decrement-timer set label count-down if count-down = 0 [ Continue set label "" reset-count-down ] if ticks - birth-tick > 65[ die ] end to reset-count-down set count-down waitingtime end
There is only one version of this model, created over 7 years ago by anjum iqbal.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Bahria_university_cafeteria_v2.png | preview | Preview for 'Bahria_university_cafeteria_v2' | over 7 years ago, by anjum iqbal | Download |
This model does not have any ancestors.
This model does not have any descendants.