breed[queens queen] breed[workers worker] breed[larvae larva] globals[compactCount] turtles-own[age] ;queen specific attributes: ;inBattle? indicates whether the queen smelled pheromone of another queen, the battle has the highest priority of all queen actions ;eggLayingPeriod? true/false, indicates whether the queen is able to lay eggs in current cycle ;foodLeft Integer, indicates the food supply level, decreases by 1 in every cycle queens-own[inBattle? eggLayingPeriod? foodLeft] ;patches can be either honeycombs or possible space to extend the honeycombs ;isHoneyComb? true/false, is this patch a honey comb? ;isEmpty? true/false, applicable to honey combs only, whether the honey comb has an egg/larva in it ;waxAmount integer, indicates the level of was needed to build a new honeycomb is on the patch ;pollenNectar integer, indicates the level of pollen and nectar that was supplied for this honeycomb ;royalJelly integer, indicates the level of royal jelly supplied for this honeycomb ;pheromoneLeft integer, indicates the level of pheromones left on the patch ;queenID integer, indicates the id number of a queen that was the last one to spread a pheromone on this patch, equal -1 was dead queens patches-own[isHoneyComb? isEmpty? waxAmount pollenNectar royalJelly pheromoneLeft queenID] ;larvae attributes: ;isWorker? whether the larva will become a worker (True/False) ;isQueen? whether the larva will become a queen (True/False) larvae-own[isWorker? isQueen? feededRoyalJelly feededPolenNectar] to setup clear-all reset-ticks set compactCount 0 if compact [ set compactCount 1 ] setup-honeycombs setup-queens setup-larvae setup-workers end to go moveQueens spreadPheromone pheromoneEvaporation queensBattle moveWorkers determineFutureBreed hatchLarvae layEggs feedLarvae feedQueen checkQueensFoodSupply checkLarvaeFoodSupply buildHoneyCombs ;every turtle gets older ask turtles [ set age (age + 1) ] ;after each cycle, by default the queen is not in battle and the food level decreases by 1 ask queens [ set inBattle? false set foodLeft (foodLeft - 1) ] tick end ;SETUP PROCEDURES to setup-honeycombs let nestSize ((ceiling sqrt InitialNumberOfHoneyCombs / 2) ) + 1 let subTotal 0 ask patches [ set isHoneyComb? false set isEmpty? false set waxAmount -1 set pollenNectar 0 set royalJelly 0 set pheromoneLeft 0 set queenID -1 ] ;a specific number of patches will become honeycombs ask n-of InitialNumberOfHoneyCombs patches with [pxcor < nestSize and pxcor > (- nestSize) and pycor > (- nestSize) and pycor < nestSize] [ set isHoneyComb? true set isEmpty? true set pcolor 42 ] end to setup-queens create-queens initialQueenPopulation ask queens [ set size 2 move-to one-of patches with [isHoneyComb?] set shape "bee" set eggLayingPeriod? false set foodLeft 100 set inBattle? false ] end to setup-workers create-workers initialWorkerPopulation ask workers [ ;setxy random-xcor random-ycor move-to one-of larvae with [isHoneyComb?] ; set xcor xcor + random 3 - random 3 ; set ycor ycor + random 3 - random 3 set shape "bee" set age random days 18 ] end to setup-larvae create-larvae initialLarvaePopulation let larvaeCount 0 ask larvae [ ;setxy random-xcor random-ycor ifelse larvaeCount = 0 [ move-to one-of patches with [isHoneyComb?] set larvaeCount 1 ] [ move-to one-of patches with [isHoneyComb? and isEmpty? and count larvae in-radius 1 >= compactCount] ] set shape "x" set color white set size 1 set isWorker? true set isQueen? false set isEmpty? false set age random days 16 set pollenNectar (days 3) + random age ] end ;GO PROCEDURES to moveWorkers ask workers [ let days18 days 18 let days6 round (days18 / 3) let days12 round (days18 / 1.66) ;print days12 ;workers find their target based on their age ;young workers between 1 and 4 days old is feeding the larvae ;workers between the age of 4 and 12 day is feeding the queen ;workers between 12 and 18 days old are building the nest ;workers older than 18 days start to leave the nest ;deafault destination is a honeycomb with a larva in it for young feeders let destination one-of neighbors with [isHoneyComb? and isEmpty? = false and count workers-here < 1 ] set color blue ;;let destination min-one-of patches with [ isHoneyComb? and isEmpty? = false and count workers-here < 10 ] [ distance myself ] ;between 6 and 12 days the workers feed queen if age >= (days6) and age < (days12) [ let myneighbors neighbors with [isHoneyComb? = true] ifelse myneighbors != nobody [ set destination one-of myneighbors with-max [pheromoneLeft] ] [ set destination min-one-of patches with [ isHoneyComb? ] [ distance myself ] ] set color red ] if age >= (days12) and age <= (days18) [ set destination one-of neighbors with [isHoneyComb? = false] set color green ] if age > (days18 + 1440) [ die ] ifelse destination != nobody [ ;destination found, let's move there face destination forward 1 ] [ ;no such destination, move random steps randomly facexy random-xcor random-ycor forward random 3 ] ] end to moveQueens ask queens [ let id [queenID] of patch-here ifelse id > -1 and id != who [ ;smells the pheromone of patch-here and if it is not mine, start battle with other queen let otherQueen one-of queens with [who = id] if otherQueen != nobody [ face otherQueen ] ] [ ;move towards the nearest honeycomb which is empty. first, try to find one that meets the compact condition let nearestHC one-of neighbors with [isEmpty? = true and count larvae in-radius 1 >= compactCount] ;if this was not found, try any of the empty neighbors if nearestHC = nobody [ set nearestHC one-of neighbors with [isEmpty? = true] ] ;finally move to any neighbor, if nothing better found in previous steps if nearestHC = nobody [ set nearestHC one-of neighbors ] face nearestHC ] forward 1 ] end to queensBattle ask queens [ let myId who let enemyQueen one-of queens-on patch-here if enemyQueen != nobody and [who] of enemyQueen != myId [ ;if the queen smells pheromone of a different queen then she starts looking for her and have a battle let myStrength age let enemyStrength [age] of enemyQueen set inBattle? true ifelse random 100 < 5 [ ;with 5% chance both queens will die in a battle ask enemyQueen [ die ] die ] [ ifelse myStrength > enemyStrength [ ask enemyQueen [ die ] ] [ die ] ] ] ] end to spreadPheromone ask queens [ ask patches in-radius pheromoneReach [ ;patches that are in radius of pheromoneReach set the new level of pheromoneLeft according to their distance from the queen let reach round (distance myself) if reach > 0 [ let newPheromoneValue pheromoneReach / reach set pheromoneLeft (pheromoneLeft + round(newPheromoneValue)) set queenID [who] of myself ] ] ask patch-here [ ;for this patch, the level will be maximum set pheromoneLeft pheromoneLeft + pheromoneReach if pheromoneLeft > 0 [ set queenID [who] of myself ] ] ] end to pheromoneEvaporation ask patches with [pheromoneLeft > 0] [ ;for patches with some pheromone left on ifelse pheromoneLeft <= 1 [ set pheromoneLeft 0 ] [ set pheromoneLeft floor(pheromoneLeft * (1 - (pheromoneElusivness / 100))) ] if showPheromoneReach = true [ ;if visualization is on, use shades of blue set pcolor pheromoneLeft / pheromoneReach + 80 ] if pheromoneLeft = 0 [ ;if the pheromone level reaches 0 in this cycle set queenID -1 ifelse isHoneyComb? = true [ set pcolor 42 ] [ set pcolor black ] ] ] end to determineFutureBreed ask larvae [ if (isWorker? = false and isQueen? = false) [ ;future breed was not determined yet if age > (days 7.5) and age < (days 8.5) and [royalJelly] of patch-here > [pollenNectar] of patch-here [ ;if the larva is 8 days old and was mostly fed with roayl jelly, it's a new queen set isQueen? true stop ] if age > (days 8.5) and age < (days 9.5) and [royalJelly] of patch-here < [pollenNectar] of patch-here [ ;if the larva is 9 days old and was mostly fed with pollen and nectar, it will be a worker set isWorker? true stop ] if age > (days 9.5) [ ;kill older larvae with no breed prepareHoneyComb patch-here die ] ] ] end to hatchLarvae ask larvae with [age >= (days 16)] [ ifelse(isWorker? = true and isQueen? = false) [ ;pure worker prepareHoneyComb patch-here set breed workers set shape "bee" set size 1 set age 0 ; print "worker born" stop ] [ ifelse(isQueen? = true and isWorker? = false and age >= (days 21)) [ ;pure queen prepareHoneyComb patch-here set breed queens set shape "bee" set size 2 set age 0 set inBattle? false print "queen born" stop ] [ ;something mutated, kill it prepareHoneyComb patch-here die ] ] ] end to layEggs ;queens can lay eggs once per 60 minute interval ;queen can lay up to 2500 eggs per day. That is 25 simulated eggs per 1440 minutes = 57.6 ask queens with [age mod 60 >= 0 and age mod 60 <= 10] [ ;give the queen time slot for egg laying 10 minutes if age mod 60 = 0 [ ;start of egg laying period (start of the time slot for laying eggs) set eggLayingPeriod? true ] if age mod 60 = 10 [ ;end of egg laying period set eggLayingPeriod? false ] ] ask queens with [inBattle? = false and eggLayingPeriod? = true] [ ;for queens in egg laying period if [isHoneyComb?] of patch-here = true and [isEmpty?] of patch-here = true [ let countLarvae count larvae in-radius 10 if countLarvae = 0 or (countLarvae > 0 and count larvae in-radius 1 >= compactCount) [ ;if the queen is honeycomb that is ready for an egg ask patch-here [ set isEmpty? false ] hatch-larvae 1 [ set shape "x" set color white set size 1 set age 0 set xcor [pxcor] of patch-here set ycor [pycor] of patch-here set isWorker? false set isQueen? false set pollenNectar days 3 ] set eggLayingPeriod? false ] ] ] end to feedLarvae ;all workers with age greater than 4 days and less than 6 days that are currently on a patch with a larvae to feed it ask workers with [age > (days 4) and age < (days 6)] [ ;if the worker is on a patch witch a larvae if [isHoneyComb?] of patch-here and [isEmpty?] of patch-here = false [ ;feed royalJelly or pollenNectar based on the level of queen's pheromone ask patch-here [ ifelse pheromoneLeft > 0 [ set pollenNectar (pollenNectar + 1) ] [ set royalJelly (royalJelly + 1) ] ] ] ] end to feedQueen ask workers with [age > (days 6) and age < (days 12)] [ ;if a worker of age 6 to 12 days meets a queen, it feeds her ask queens-here [ if foodLeft < 1000 [ set foodLeft (foodLeft + 1) ] ] ] end to checkQueensFoodSupply ;if the food supply for a queen is negative, kill the queen ask queens with [foodLeft < 0] [ print "podvyziva kralovnej" die ] end to checkLarvaeFoodSupply ;for all the larvae, if the food supply level (royalJelly + pollenNectar of the patch they are on is less than their age divided by larvaeMinimumFeedingInterval, kill it ask larvae [ if [royalJelly] of patch-here + [pollenNectar] of patch-here < age / larvaeMinimumFeedingInterval [ prepareHoneyComb patch-here print "podvyziva larvy" print [royalJelly] of patch-here + [pollenNectar] of patch-here print age / larvaeMinimumFeedingInterval die ] ] end to buildHoneyCombs ;workers of age 12 to 18 days are building new honeycombs ask workers with [age >= (days 12) and age <= (days 18)] [ ;new honeycomb must be a neighbor of an existing one if ([isHoneyComb?] of patch-here = false and any? neighbors with [isHoneyComb? = true]) [ ifelse [waxAmount] of patch-here < waxLevelNeededForHoneyComb [ ask patch-here [ set waxAmount (waxAmount + 1) ] ] [ ask patch-here [ set isHoneyComb? true set pheromoneLeft 0 prepareHoneyComb self ] ] ] ] end ;OTHER PROCEDURES to prepareHoneyComb [honeyComb] ask honeyComb [ set isEmpty? true set pcolor 42 set pollenNectar 0 set royalJelly 0 ] end to-report days [ d ] ; print d let m round(1440 * (random-normal d 0.2)) ; print m report m end @#$#@#$#@ GRAPHICS-WINDOW 314 16 822 545 30 30 8.164 1 10 1 1 1 0 0 0 1 -30 30 -30 30 0 0 1 ticks 30.0 BUTTON 2 10 69 43 NIL setup NIL 1 T OBSERVER NIL NIL NIL NIL 1 BUTTON 72 10 154 43 NIL go T 1 T OBSERVER NIL NIL NIL NIL 1 MONITOR 922 12 1028 65 NIL count workers 17 1 13 MONITOR 1028 12 1129 65 NIL count queens 17 1 13 MONITOR 828 12 922 65 NIL count larvae 17 1 13 MONITOR 5 554 440 607 NIL count patches with [isHoneyComb? = true and isEmpty? = false] 17 1 13 MONITOR 1116 67 1462 120 NIL count patches with [royalJelly > pollenNectar] 17 1 13 MONITOR 827 66 1106 119 NIL count patches with [queenID != -1] 17 1 13 SLIDER 6 216 201 249 pheromoneElusivness pheromoneElusivness 0 100 10 1 1 NIL HORIZONTAL SLIDER 6 253 178 286 pheromoneReach pheromoneReach 0 50 11 1 1 NIL HORIZONTAL PLOT 838 308 1398 550 Population time population 0.0 10.0 0.0 10.0 true true "" "" PENS "Workers" 1.0 0 -7171555 true "" "plot count workers" "Queens" 1.0 0 -8053223 true "" "plot count queens" SWITCH 12 357 218 390 showPheromoneReach showPheromoneReach 1 1 -1000 INPUTBOX 159 58 314 118 InitialQueenPopulation 1 1 0 Number INPUTBOX 5 120 133 180 InitialWorkerPopulation 500 1 0 Number SLIDER 4 182 259 215 larvaeMinimumFeedingInterval larvaeMinimumFeedingInterval 0 3000 210 10 1 NIL HORIZONTAL INPUTBOX 2 59 157 119 InitialNumberOfHoneyCombs 1000 1 0 Number INPUTBOX 9 290 193 350 waxLevelNeededForHoneyComb 100 1 0 Number PLOT 841 151 1137 301 Workers time workers 0.0 10.0 0.0 10.0 true true "" "" PENS "Feeding queen" 1.0 0 -2674135 true "" "plot count workers with [age > 6 * 1440 and age < 12 * 1440]" "Feeding larvae" 1.0 0 -13345367 true "" "plot count workers with [age > 4 * 1440 and age < 6 * 1440]" "Building" 1.0 0 -13840069 true "" "plot count workers with [age >= 12 * 1440 and age <= 18 * 1440]" MONITOR 1141 13 1407 58 NIL count larvae with [count workers-here = 0] 17 1 11 PLOT 1158 149 1358 299 Larvae NIL NIL 0.0 10.0 0.0 10.0 true false "" "" PENS "default" 1.0 0 -16777216 true "" "plot count larvae" "pen-1" 1.0 0 -2674135 true "" "plot count larvae with [count workers-here = 0]" INPUTBOX 162 121 288 181 initialLarvaePopulation 350 1 0 Number SWITCH 191 254 310 287 compact compact 0 1 -1000 @#$#@#$#@ ## 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) @#$#@#$#@ default true 0 Polygon -7500403 true true 150 5 40 250 150 205 260 250 airplane true 0 Polygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15 arrow true 0 Polygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150 bee true 0 Polygon -1184463 true false 152 149 77 163 67 195 67 211 74 234 85 252 100 264 116 276 134 286 151 300 167 285 182 278 206 260 220 242 226 218 226 195 222 166 Polygon -16777216 true false 150 149 128 151 114 151 98 145 80 122 80 103 81 83 95 67 117 58 141 54 151 53 177 55 195 66 207 82 211 94 211 116 204 139 189 149 171 152 Polygon -7500403 true true 151 54 119 59 96 60 81 50 78 39 87 25 103 18 115 23 121 13 150 1 180 14 189 23 197 17 210 19 222 30 222 44 212 57 192 58 Polygon -16777216 true false 70 185 74 171 223 172 224 186 Polygon -16777216 true false 67 211 71 226 224 226 225 211 67 211 Polygon -16777216 true false 91 257 106 269 195 269 211 255 Line -1 false 144 100 70 87 Line -1 false 70 87 45 87 Line -1 false 45 86 26 97 Line -1 false 26 96 22 115 Line -1 false 22 115 25 130 Line -1 false 26 131 37 141 Line -1 false 37 141 55 144 Line -1 false 55 143 143 101 Line -1 false 141 100 227 138 Line -1 false 227 138 241 137 Line -1 false 241 137 249 129 Line -1 false 249 129 254 110 Line -1 false 253 108 248 97 Line -1 false 249 95 235 82 Line -1 false 235 82 144 100 bee 2 true 0 Polygon -1184463 true false 195 150 105 150 90 165 90 225 105 270 135 300 165 300 195 270 210 225 210 165 195 150 Rectangle -16777216 true false 90 165 212 185 Polygon -16777216 true false 90 207 90 226 210 226 210 207 Polygon -16777216 true false 103 266 198 266 203 246 96 246 Polygon -6459832 true false 120 150 105 135 105 75 120 60 180 60 195 75 195 135 180 150 Polygon -6459832 true false 150 15 120 30 120 60 180 60 180 30 Circle -16777216 true false 105 30 30 Circle -16777216 true false 165 30 30 Polygon -7500403 true true 120 90 75 105 15 90 30 75 120 75 Polygon -16777216 false false 120 75 30 75 15 90 75 105 120 90 Polygon -7500403 true true 180 75 180 90 225 105 285 90 270 75 Polygon -16777216 false false 180 75 270 75 285 90 225 105 180 90 Polygon -7500403 true true 180 75 180 90 195 105 240 195 270 210 285 210 285 150 255 105 Polygon -16777216 false false 180 75 255 105 285 150 285 210 270 210 240 195 195 105 180 90 Polygon -7500403 true true 120 75 45 105 15 150 15 210 30 210 60 195 105 105 120 90 Polygon -16777216 false false 120 75 45 105 15 150 15 210 30 210 60 195 105 105 120 90 Polygon -16777216 true false 135 300 165 300 180 285 120 285 box false 0 Polygon -7500403 true true 150 285 285 225 285 75 150 135 Polygon -7500403 true true 150 135 15 75 150 15 285 75 Polygon -7500403 true true 15 75 15 225 150 285 150 135 Line -16777216 false 150 285 150 135 Line -16777216 false 150 135 15 75 Line -16777216 false 150 135 285 75 bug true 0 Circle -7500403 true true 96 182 108 Circle -7500403 true true 110 127 80 Circle -7500403 true true 110 75 80 Line -7500403 true 150 100 80 30 Line -7500403 true 150 100 220 30 butterfly true 0 Polygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240 Polygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240 Polygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163 Polygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165 Polygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225 Circle -16777216 true false 135 90 30 Line -16777216 false 150 105 195 60 Line -16777216 false 150 105 105 60 car false 0 Polygon -7500403 true true 300 180 279 164 261 144 240 135 226 132 213 106 203 84 185 63 159 50 135 50 75 60 0 150 0 165 0 225 300 225 300 180 Circle -16777216 true false 180 180 90 Circle -16777216 true false 30 180 90 Polygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89 Circle -7500403 true true 47 195 58 Circle -7500403 true true 195 195 58 circle false 0 Circle -7500403 true true 0 0 300 circle 2 false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 cow false 0 Polygon -7500403 true true 200 193 197 249 179 249 177 196 166 187 140 189 93 191 78 179 72 211 49 209 48 181 37 149 25 120 25 89 45 72 103 84 179 75 198 76 252 64 272 81 293 103 285 121 255 121 242 118 224 167 Polygon -7500403 true true 73 210 86 251 62 249 48 208 Polygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123 cylinder false 0 Circle -7500403 true true 0 0 300 dot false 0 Circle -7500403 true true 90 90 120 face happy false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 255 90 239 62 213 47 191 67 179 90 203 109 218 150 225 192 218 210 203 227 181 251 194 236 217 212 240 face neutral false 0 Circle -7500403 true true 8 7 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Rectangle -16777216 true false 60 195 240 225 face sad false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 168 90 184 62 210 47 232 67 244 90 220 109 205 150 198 192 205 210 220 227 242 251 229 236 206 212 183 fish false 0 Polygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166 Polygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165 Polygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60 Polygon -7500403 true true 30 136 151 77 226 81 280 119 292 146 292 160 287 170 270 195 195 210 151 212 30 166 Circle -16777216 true false 215 106 30 flag false 0 Rectangle -7500403 true true 60 15 75 300 Polygon -7500403 true true 90 150 270 90 90 30 Line -7500403 true 75 135 90 135 Line -7500403 true 75 45 90 45 flower false 0 Polygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135 Circle -7500403 true true 85 132 38 Circle -7500403 true true 130 147 38 Circle -7500403 true true 192 85 38 Circle -7500403 true true 85 40 38 Circle -7500403 true true 177 40 38 Circle -7500403 true true 177 132 38 Circle -7500403 true true 70 85 38 Circle -7500403 true true 130 25 38 Circle -7500403 true true 96 51 108 Circle -16777216 true false 113 68 74 Polygon -10899396 true false 189 233 219 188 249 173 279 188 234 218 Polygon -10899396 true false 180 255 150 210 105 210 75 240 135 240 hex false 0 Polygon -7500403 true true 0 150 75 30 225 30 300 150 225 270 75 270 house false 0 Rectangle -7500403 true true 45 120 255 285 Rectangle -16777216 true false 120 210 180 285 Polygon -7500403 true true 15 120 150 15 285 120 Line -16777216 false 30 120 270 120 leaf false 0 Polygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195 line true 0 Line -7500403 true 150 0 150 300 line half true 0 Line -7500403 true 150 0 150 150 pentagon false 0 Polygon -7500403 true true 150 15 15 120 60 285 240 285 285 120 person false 0 Circle -7500403 true true 110 5 80 Polygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Rectangle -7500403 true true 127 79 172 94 Polygon -7500403 true true 195 90 240 150 225 180 165 105 Polygon -7500403 true true 105 90 60 150 75 180 135 105 plant false 0 Rectangle -7500403 true true 135 90 165 300 Polygon -7500403 true true 135 255 90 210 45 195 75 255 135 285 Polygon -7500403 true true 165 255 210 210 255 195 225 255 165 285 Polygon -7500403 true true 135 180 90 135 45 120 75 180 135 210 Polygon -7500403 true true 165 180 165 210 225 180 255 120 210 135 Polygon -7500403 true true 135 105 90 60 45 45 75 105 135 135 Polygon -7500403 true true 165 105 165 135 225 105 255 45 210 60 Polygon -7500403 true true 135 90 120 45 150 15 180 45 165 90 sheep false 15 Circle -1 true true 203 65 88 Circle -1 true true 70 65 162 Circle -1 true true 150 105 120 Polygon -7500403 true false 218 120 240 165 255 165 278 120 Circle -7500403 true false 214 72 67 Rectangle -1 true true 164 223 179 298 Polygon -1 true true 45 285 30 285 30 240 15 195 45 210 Circle -1 true true 3 83 150 Rectangle -1 true true 65 221 80 296 Polygon -1 true true 195 285 210 285 210 240 240 210 195 210 Polygon -7500403 true false 276 85 285 105 302 99 294 83 Polygon -7500403 true false 219 85 210 105 193 99 201 83 square false 0 Rectangle -7500403 true true 30 30 270 270 square 2 false 0 Rectangle -7500403 true true 30 30 270 270 Rectangle -16777216 true false 60 60 240 240 star false 0 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108 target false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 Circle -7500403 true true 60 60 180 Circle -16777216 true false 90 90 120 Circle -7500403 true true 120 120 60 tree false 0 Circle -7500403 true true 118 3 94 Rectangle -6459832 true false 120 195 180 300 Circle -7500403 true true 65 21 108 Circle -7500403 true true 116 41 127 Circle -7500403 true true 45 90 120 Circle -7500403 true true 104 74 152 triangle false 0 Polygon -7500403 true true 150 30 15 255 285 255 triangle 2 false 0 Polygon -7500403 true true 150 30 15 255 285 255 Polygon -16777216 true false 151 99 225 223 75 224 truck false 0 Rectangle -7500403 true true 4 45 195 187 Polygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194 Rectangle -1 true false 195 60 195 105 Polygon -16777216 true false 238 112 252 141 219 141 218 112 Circle -16777216 true false 234 174 42 Rectangle -7500403 true true 181 185 214 194 Circle -16777216 true false 144 174 42 Circle -16777216 true false 24 174 42 Circle -7500403 false true 24 174 42 Circle -7500403 false true 144 174 42 Circle -7500403 false true 234 174 42 turtle true 0 Polygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210 Polygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105 Polygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105 Polygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87 Polygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210 Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99 wheel false 0 Circle -7500403 true true 3 3 294 Circle -16777216 true false 30 30 240 Line -7500403 true 150 285 150 15 Line -7500403 true 15 150 285 150 Circle -7500403 true true 120 120 60 Line -7500403 true 216 40 79 269 Line -7500403 true 40 84 269 221 Line -7500403 true 40 216 269 79 Line -7500403 true 84 40 221 269 wolf false 0 Polygon -16777216 true false 253 133 245 131 245 133 Polygon -7500403 true true 2 194 13 197 30 191 38 193 38 205 20 226 20 257 27 265 38 266 40 260 31 253 31 230 60 206 68 198 75 209 66 228 65 243 82 261 84 268 100 267 103 261 77 239 79 231 100 207 98 196 119 201 143 202 160 195 166 210 172 213 173 238 167 251 160 248 154 265 169 264 178 247 186 240 198 260 200 271 217 271 219 262 207 258 195 230 192 198 210 184 227 164 242 144 259 145 284 151 277 141 293 140 299 134 297 127 273 119 270 105 Polygon -7500403 true true -1 195 14 180 36 166 40 153 53 140 82 131 134 133 159 126 188 115 227 108 236 102 238 98 268 86 269 92 281 87 269 103 269 113 x false 0 Polygon -7500403 true true 270 75 225 30 30 225 75 270 Polygon -7500403 true true 30 75 75 30 270 225 225 270 @#$#@#$#@ NetLogo 5.0.5 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ default 0.0 -0.2 0 0.0 1.0 0.0 1 1.0 0.0 0.2 0 0.0 1.0 link direction true 0 Line -7500403 true 150 150 90 180 Line -7500403 true 150 150 210 180 @#$#@#$#@ 0 @#$#@#$#@