设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6749|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。% [$ L" J! G- J7 V( w- S
表现为:小人儿和僵尸的icon都不动。
, ^! q. g4 {$ c! w9 ^7 X9 c( o! cerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
  ?+ J; n6 L: q. |* G
4 \; T9 s/ q( L* S# R+ djava.lang.reflect.InvocationTargetException
( ]: L$ r  c, F9 }        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
. a0 G  d4 s0 q/ m' |        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
0 ~" [8 A* _* l        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)- C9 u" ~1 y  i8 Q6 i. l1 ?
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
" M5 ?+ N* j9 z+ b4 |' k+ W        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)! C. S# \3 \$ `1 z3 h! q
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
/ H- s% ^, X( n9 Y; _/ r        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)' P1 h* \; w# ?, m. N, d( w
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)6 \! ]! J! r4 Q. G6 E- H
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
( z5 u4 Y0 K/ g# Y        at java.lang.Thread.run(Unknown Source)
8 T: H# e4 z( x+ `: a% a0 }! I# FCaused 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]1 ~" b% l1 b6 Y. h) h
Possible solutions: getNeighborhood(boolean)5 M& d: W4 N% Y: y; f
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
. s1 X- W# r0 M* X1 g; ?: h0 U        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46): y; h6 a0 F+ y5 p
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)0 o0 E& i4 [$ q; d$ I
        at FlowZombies.Zombie.step(Zombie.groovy:128)
0 F9 I  U; @9 y' m$ P; u$ [        : c8 K) |" R7 w
请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-2-1 18:15 , Processed in 0.012351 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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