设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7521|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。' m' d6 v  w2 p- y
表现为:小人儿和僵尸的icon都不动。) D& l1 _0 d1 Y) n
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
1 Z+ I# L& P+ p3 E* n0 [! V" l1 q. T
java.lang.reflect.InvocationTargetException. s' a. F$ x" f# D: Z
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
* B: ]; ?, q, p' c% \. G9 B1 g3 ]        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)' `9 s% V! K# V% [
        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
+ |3 ?5 D/ H' o        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)6 S1 ~7 c, J& B& V
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)/ ], m. j) s, s: W/ Y; v
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
# e7 q7 L5 p% h) T1 F; j        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)! K* P) K9 q, J$ C! R
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
% m" `, h7 [) B8 l5 H! }: C        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)$ |. n; M8 s7 i
        at java.lang.Thread.run(Unknown Source)* c% H$ M+ u3 H8 ]7 g
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) B+ U% x" }0 v  UPossible solutions: getNeighborhood(boolean)2 d- w% O% w0 e# X" B. o
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)" x) b; s% }9 T; j3 }5 g; f
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
, T  {" h3 y; W8 e$ }+ w        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)8 V3 }5 d; D4 O
        at FlowZombies.Zombie.step(Zombie.groovy:128)
7 I5 [( ]( N9 T        0 E8 H9 X. u; k, _# X, H7 y+ {
请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-19 02:53 , Processed in 0.011343 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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