Time 使用时间:直到NetLogo时间延长

Time 使用时间:直到NetLogo时间延长,time,netlogo,Time,Netlogo,使用NetLogo 5.1.0和Windows 8.1上的NetLogo时间扩展,我希望模拟在特定日期或特定时间段后停止 time:go-until根据上的文档应该可以做到这一点,但我不知道如何正确使用它。以下是我目前掌握的情况: extensions [time] globals[ start-time current-time ] to setup clear-all reset-ticks set start-time time:create "2011-01-0

使用NetLogo 5.1.0和Windows 8.1上的NetLogo时间扩展,我希望模拟在特定日期或特定时间段后停止

time:go-until
根据上的文档应该可以做到这一点,但我不知道如何正确使用它。以下是我目前掌握的情况:

extensions [time]

globals[
  start-time
  current-time
]

to setup
  clear-all
  reset-ticks

  set start-time time:create "2011-01-01"
  set current-time time:anchor-to-ticks start-time 1.0 "days"
  time:anchor-schedule start-time 1.0 "days"

  create-turtles 2
  time:schedule-repeating-event-with-period turtles task [fd 1] 1 1.0 "days"
end

to go-until
  time:go-until 40
  ;time:go-until time:create "2011-03-01"
  ;time:go-until time:plus start-time 33.0 "days" 
end
这样,sim卡运行40次,然后按预期结束。但是,当我将
时间:持续到40
替换为
时间:持续到时间:创建“2011-03-01”
时间:持续到时间:加上开始时间33.0“天”
时,我在模拟开始时得到以下错误:

Extension exception: time: was expecting a number as argument 1, found this instead: {{time:logotime 2011-03-01}}
error while observer running TIME:GO-UNTIL
called by procedure GO-UNTIL
called by Button 'go'
以下是文档中的一个示例,它应该可以正常工作:

time:go-until time:plus t-datetime 1.0 "hour" 
;; Execute events within the next hour; t-datetime is the current time.

我错过了什么

扩展名
的作者修复了该问题,并且
时间:go-Till
现在与LogoTimes一起使用时可以正常工作(请参阅)。

现在已将其作为问题提交至