设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5187|回复: 0

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

[复制链接]
发表于 2012-8-29 11:37:22 | 显示全部楼层 |阅读模式
参考predator的示例生成了一个continuous的space,语句如下:4 j- @, x1 t& ?' x
ontinuousSpaceFactoryFinder.createContinuousSpaceFactory(null).createContinuousSpace("Continuous Space", context,new
; C0 l) l6 v. y" M+ V                                 RandomCartesianAdder<SimplePedestrian>(),5 q5 {' X  R' L& D6 `* V4 X
                                 new repast.simphony.space.continuous.WrapAroundBorders(),xdim,ydim,1);
% x2 P5 h6 V2 C" o但这个语句只能生成方形的空间?我想要一个不规则的形状,怎样自己画呢?而且不同边的边界条件不一样。0 r- b. M' g8 V" n) G
比如下面这样的
4 @' m; }) i& L* X9 P* X( q4 r+ x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 09:00 , Processed in 0.013159 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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