Netlogo 要求代理在特定的时间段内随时间延长而行为

Netlogo 要求代理在特定的时间段内随时间延长而行为,netlogo,Netlogo,我正在使用NetLogo中的时间扩展加载一些每日温度数据。我模型中的海龟有一些与温度数据相关的程序。我可以按如下方式设置时间方面: set time-series time:ts-load "environmentTimeseries.txt" set start-time time:create "2018/01/01" set current-time time:anchor-to-ticks start-time 1.0 "day" time:anchor-schedule

我正在使用NetLogo中的时间扩展加载一些每日温度数据。我模型中的海龟有一些与温度数据相关的程序。我可以按如下方式设置时间方面:

  set time-series time:ts-load "environmentTimeseries.txt"
  set start-time time:create "2018/01/01"
  set current-time time:anchor-to-ticks start-time 1.0 "day"
  time:anchor-schedule start-time 1.0 "day"
海龟可以与这些温度数据交互:

set current-temp time:ts-get time-series current-time "temp"
  ask turtles [
set my-temp random-normal current-temp 1 ; my-temp is a turtles-own variable
]
我现在想做的是让海龟们只在一年中的某些月份执行这个程序。类似于,
if month>5&<7[do procedure]
。不幸的是,时间扩展中的调度程序一直在破坏我的模型,所以我不确定这是一个选项


希望你能帮我

我在网上找到了我想要的东西。我可以创建一个名为
my month
turtles own
变量,然后应用以下代码行,使代理可以跟踪当前月份:

set my-month  time:get "month" current-time

if month>5&<7
不是合法的NetLogo,但是
if month>5和month<7
是合法的NetLogo。但是如果month=6,你也可以说
,因为这是5到7之间唯一的数字。如果月份>=5和月份,您的意思可能是