设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5379|回复: 3

[求助] repast s 2.0beta 手册中僵尸吃人的例子

  [复制链接]
发表于 2011-8-30 16:12:20 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。
* |2 g$ ]+ g% p表现为:小人儿和僵尸的icon都不动。
' B9 b* I# {0 E/ O6 y* T* Xerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
8 _% g4 f, s( ]0 s5 a  w
4 m! F, Q# ^: U8 F, P, w3 L: z3 Djava.lang.reflect.InvocationTargetException
( `. X- B7 Q$ i# b& J# r( t( L$ M$ {        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>). J8 S/ S% N) v. v7 i: X2 Z$ v
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)# b; m) o4 R2 q9 d9 W# B; k6 m
        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)* K9 I. k) W4 g: F7 t3 p6 `
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
$ |7 \' }8 u1 ]5 @6 r; ~        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)6 `7 o9 T0 o* X: V
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)  y4 A3 H9 @1 ?, a  a
        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)) h8 J7 K4 p: h2 Y; L8 D
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352), l% P! x* |. ^/ d1 M5 B  e
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)( L; w7 k4 y4 C0 m
        at java.lang.Thread.run(Unknown Source)' q/ {; }3 d3 e5 p. \) s1 Q2 f
Caused by: groovy.lang.MissingMethodException: No signature of method: repast.simphony.query.space.grid.GridCellNgh.getNeiborhood() is applicable for argument types: (java.lang.Boolean) values: [true]% T+ v* s3 C2 X2 z" i
Possible solutions: getNeighborhood(boolean)! w4 W: f1 X2 B1 L& _- g" ?
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)% m2 y/ L! R: E% D( T" Z
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
) q  E) Y( ^& [" f# n6 S        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
6 D# B% L8 d! ?, Z; D  _2 Y' e        at FlowZombies.Zombie.step(Zombie.groovy:128)+ w( g" X0 Q5 ?: E8 j% ]
       
0 ?8 x3 t' @3 g  a5 q+ r请高手指点迷津呀!痛苦中……
发表于 2011-10-19 14:44:25 | 显示全部楼层
来学习的多多指教
发表于 2011-12-1 23:20:57 | 显示全部楼层
应该是调用STEP方法不成功,请查看step方法体内部是否代码有错误。
发表于 2012-7-26 15:16:05 | 显示全部楼层
是不是你的“@ScheduledMethod(start = 1, interval = 1)”没加
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-7 12:25 , Processed in 0.014947 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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