设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5190|回复: 0

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

[复制链接]
发表于 2012-8-29 11:37:22 | 显示全部楼层 |阅读模式
参考predator的示例生成了一个continuous的space,语句如下:7 s* Q' |( Y0 L8 a- A7 R$ L
ontinuousSpaceFactoryFinder.createContinuousSpaceFactory(null).createContinuousSpace("Continuous Space", context,new
+ s8 n% A4 J. n3 Q2 N( [6 L                                 RandomCartesianAdder<SimplePedestrian>(),& G2 O: [1 c; c3 w7 T8 g3 U! h  l
                                 new repast.simphony.space.continuous.WrapAroundBorders(),xdim,ydim,1);" e6 m# O5 X. z: l$ f& A; r
但这个语句只能生成方形的空间?我想要一个不规则的形状,怎样自己画呢?而且不同边的边界条件不一样。
7 {! s( a8 f* {5 w! G- ~# a  d4 x比如下面这样的4 H/ Z4 @% M/ M7 t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 10:12 , Processed in 0.016244 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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