colinsheppard / time

A NetLogo extension that brings date/time utilities and discrete event scheduling to NetLogo
12 stars 13 forks source link

Update ticks when events are scheduled at < 1 tick apart #22

Closed SFRailsback closed 10 years ago

SFRailsback commented 10 years ago

Running the mousetrap model, I see that NetLogo's "ticks" (and the LogoTime variable to which ticks are anchored) are not being updated as events are executed. This problem occurs when events are scheduled at a fraction of a tick, not when each event takes > 1 tick. The tick counter seems to be updated fine when trap snaps are scheduled at random 20 seconds from now, but not when they are scheduled at random 0.2 seconds from now. (Vary the input mean-flight-time.) (You are familiar with the primitive "tick-advance"?)

colinsheppard commented 10 years ago

this was a bug in the netlogo model, not the extension