设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6244|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。/ e9 t) F! a& ]' A
表现为:小人儿和僵尸的icon都不动。: J8 q; D% ]# s- f" h+ V$ J; B
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()" n9 ]  p/ T2 y( c

, O. {  J1 E3 b; j1 ajava.lang.reflect.InvocationTargetException  \$ q3 h5 G0 t
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
7 o3 \/ u8 S" o+ ?7 ~0 ^        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
) w  Z) h" _1 S8 w) I; u        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)& L. D$ [" S# j3 _; j
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
! u7 K6 [) {/ {$ n' F% L/ x        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)) l. Q! q+ @5 z- Y% c
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)4 j# [6 N) [3 k: b# p
        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201): U/ l7 U" H1 j8 \; r8 g
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)3 u$ x3 G9 g$ L
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)- [$ ~4 V1 f+ D+ A/ l4 D: E8 r
        at java.lang.Thread.run(Unknown Source)
" w1 s6 H1 D, R0 ^% MCaused 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]
8 l6 S+ v8 w# g& W. e. s; VPossible solutions: getNeighborhood(boolean)
3 Y3 G# s/ W' h1 n9 I$ |* U5 d        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)0 T$ f- S& D" z
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)8 f! J- D( X0 n
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
+ Q: J0 M1 o4 d7 w) h5 _- `        at FlowZombies.Zombie.step(Zombie.groovy:128)8 F# ~, r+ X7 E3 [/ b
        ( D; Q9 L8 x1 t
请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-10-20 14:57 , Processed in 0.019358 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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