【发布时间】:2019-02-15 23:04:20
【问题描述】:
所以在这个模型中,我有几个随机放置在一个区域中的医院代理。这些医院包含一个流程,并且在该流程的某个时刻,使用拆分块生成了一个新的代理“骨骼”。这些 Bones-agent 的位置通过设置为医院的 (x,y) 坐标来正确指定。
现在我想通过将医院放置在 GIS 地图中的实际位置来使模型更加逼真。我成功地做到了这一点。但是,现在我需要重新指定 Bones-agents 的位置。在生成第一个 Bones-agent 时,我收到以下错误:
root.Hospital1.splitblock:
Error when trying to initialize new agent
Caused by: root.Hospital2:
This agent is already defined as agent living in space 'Continuous, based on
GIS map' and can't have behaviour for space 'Continuous'This agent is already
defined as agent living in space 'Continuous, based on GIS map' and can't
have behaviour for space 'Continuous'
我需要做什么才能完成这项工作?我已经尝试将 Bones-agent 的位置设置为等于医院代理的经度和纬度,具有以下功能:
double longitude = getLongitude();
return longitude;
我对高纬度做了同样的事情。然后我将这些函数输入到分割块的“纬度”字段中。
【问题讨论】:
标签: anylogic