NetLogo的首次发布者和完整新手!我已经加载了GIS属性数据,并想要创建海龟并将每个属性分配给1个。我尝试使用乌龟拥有的变量来做到这一点(见下文)。
residents-own [residents-property]
然后,我使用属性输入过程将其移动到使用GIS扩展程序加载的随机房屋中。
to enter-property
set residents-property random 23545
move-to residents-property
ask residents-property [
set propertys-resident one-of residents-here with [residents-property = myself]
]
end
当我调用该程序时,出现以下错误:
“ TURTLES品种不拥有变量RESIDENTS-PROPERTY错误,而 乌龟30421正在运行由程序PROPERTY-ENTER调用的SET 由过程SETUP-RESIDENTS由过程SETUP调用 按钮“设置””
有人可以帮忙吗?
亲切的问候,
大卫