|
|
参考predator的示例生成了一个continuous的space,语句如下:
: r1 V& Y0 {% l8 uontinuousSpaceFactoryFinder.createContinuousSpaceFactory(null).createContinuousSpace("Continuous Space", context,new& [7 t0 e* S/ T9 a) [
RandomCartesianAdder<SimplePedestrian>(),: y: T6 `, J! f) o% G+ V a3 Q9 T
new repast.simphony.space.continuous.WrapAroundBorders(),xdim,ydim,1);9 `. E6 { y, |3 Z/ T2 G x
但这个语句只能生成方形的空间?我想要一个不规则的形状,怎样自己画呢?而且不同边的边界条件不一样。& x; N1 @9 T7 Y ]& X+ Z0 e
比如下面这样的3 [+ z+ {" k7 ]( @4 K8 A9 @
 |
|