klionski.blogg.se

Netlogo crt
Netlogo crt












netlogo crt
  1. NETLOGO CRT HOW TO
  2. NETLOGO CRT PATCH
  3. NETLOGO CRT CODE

Now, I tried to modify this code using foreach to loop through neighbors and get the set-memory procedure to work for each patch: to set-memory Let thispatch (list pxcor pycor year) key for table

NETLOGO CRT PATCH

The code that seems to be working for the current patch is: extensions I have managed to code for the creation of a table that has these values for the current patch but am stuck trying to scale this so that, at each time step, the turtle stores these three things for all its neighboring patches. I am creating turtle-specific tables in which to store patch coordinates, year of simulation (global variable set to 1, 2, or 3 depending on tick count), and a patch variable representing available resources. CREDITS AND REFERENCES - This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.Netlogo - Memory: storing patch variables in table for multiple patches - netlogo - Memory: storing patch variables in table for multiple patches

netlogo crt

RELATED MODELS - This section could give the names of models in the NetLogo Models Library or elsewhere which are of related interest. It might also point out places where workarounds were needed because of missing features. NETLOGO FEATURES - This section could point out any especially interesting or unusual features of NetLogo that the model makes use of, particularly in the Procedures tab. EXTENDING THE MODEL - This section could give some ideas of things to add or change in the procedures tab to make the model more complicated, detailed, accurate, etc. THINGS TO TRY - This section could give some ideas of things for the user to try to do (move sliders, switches, etc.) with the model. THINGS TO NOTICE - This section could give some ideas of things for the user to notice while running the model.

NETLOGO CRT HOW TO

HOW TO USE IT - This section could explain how to use the model, including a description of each of the items in the interface tab. HOW IT WORKS - This section could explain what rules the agents use to create the overall behavior of the model. 0001 plot_it end to plot_it set-current-plot "DistancePlot" ask turtles ] end GRAPHICS-WINDOW 303 10 733 461 17 17 12.0 1 10 1 1 1 0 1 1 1 -17 17 -17 17 CC-WINDOW 5 475 958 570 Command Center 0 BUTTON 39 42 104 76 Reset setup NIL 1 T OBSERVER T NIL SLIDER 37 98 210 131 current_slider current_slider 0 10 5 1 1 mph SLIDER 37 135 210 168 motor_slider motor_slider 0 30 20 1 1 mph BUTTON 129 42 195 76 Travel travel NIL 1 T OBSERVER T NIL PLOT 749 19 949 169 DistancePlot Time Distance 0.0 10.0 0.0 34.0 true false PENS "distbetween" 1.0 0 -16777216 true "distwith" 1.0 0 -2674135 true "distagainst" 1.0 0 -10899396 true MONITOR 40 236 173 285 Downstream Speed vwith 1 1 MONITOR 39 297 173 346 Upstream Speed vagainst\n 1 1 SLIDER 36 187 208 220 distapart_slider distapart_slider 0 34 20 1 1 miles MONITOR 826 235 883 284 Time time 3 1 MONITOR 793 180 905 229 Distance Between distbetween 3 1 WHAT IS IT? - This section could give a general understanding of what the model is trying to show or explain. Globals to setup ca crt 2 set time 0 set dist distapart_slider set x0 0 - dist / 2 set y0 0 set xstart x0 set velocity motor_slider set current current_slider ask turtles if who = 1 ] end to travel set time time + 0.01 ask turtles if who = 1 ] set distbetween x1 - x0 set distwith x0 - xstart set distagainst x1start - x1 wait.














Netlogo crt