The behavior of fireflies model in netlogo -
The behavior of fireflies model in netlogo -
i'm looking closely @ behavior of fireflies model in models library.
recently, thought each firefly might looking @ state of flashing of others 1 step before current step.
the reason question follows: in go procedure, @ step t, each firefly increments own clock (t + 1), @ others' flashes if focal firefly not flashing @ step t + 1. however, state of others' flashes focal firefly looking @ still in step t.
although might not impact global behavior of model, think can allow fireflies respond own flashes.
i'd know whether interpretation right or not.
(original go procedure)
to go inquire turtles [ move increment-clock if ( (clock > window) , (clock >= threshold) ) [ ] ] inquire turtles [ recolor ] tick end
if understanding correct, descriptions of procedures go , seem appropriate.
to go inquire turtles [ move increment-clock ] inquire turtles [ recolor ] inquire turtles [ if ( (clock > window) , ((clock >= threshold) )) [ ] ] tick end ; turtle procedure if count turtles in-radius 1 [color = yellow] >= flashes-to-reset [ set clock (reset-level - 1)] end
netlogo
Comments
Post a Comment