设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3916|回复: 0

[求助] repast1.2.0版怎样自定义space

[复制链接]
发表于 2012-8-29 11:37:22 | 显示全部楼层 |阅读模式
参考predator的示例生成了一个continuous的space,语句如下:
8 [. ]" a# F' ?( h. `* S+ FontinuousSpaceFactoryFinder.createContinuousSpaceFactory(null).createContinuousSpace("Continuous Space", context,new
+ S) s' V. e3 q, G. o) C+ r                                 RandomCartesianAdder<SimplePedestrian>(),: N' q3 [/ C. S( Z% I. d% ~
                                 new repast.simphony.space.continuous.WrapAroundBorders(),xdim,ydim,1);' w: U" i$ }* q4 c' s2 x* A# O
但这个语句只能生成方形的空间?我想要一个不规则的形状,怎样自己画呢?而且不同边的边界条件不一样。7 s# W" F5 u3 J4 K7 Q
比如下面这样的- _; n0 I* }) h2 X% O
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2025-7-9 07:00 , Processed in 0.014229 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表