设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6563|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。9 I$ E9 [% e+ n" D
表现为:小人儿和僵尸的icon都不动。
- W  G- I$ |3 |+ Uerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()! p9 S8 K, c0 M' [% h! e
& J2 S' I- u. ?. y
java.lang.reflect.InvocationTargetException* S; ~5 H* P9 t4 d! K) j* T3 i7 B! H
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
! E! b2 B4 b1 ^( w) i3 O$ ~' G        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
- N# ~0 M( O6 N  B0 Y        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)9 q0 V- B& ^9 |
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)/ g7 G: s! i! c2 A2 z
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)7 ^3 o  ?, m" ?& m- W' `; A
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
0 c8 A3 p4 F  b1 M- u: I        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)+ q- j2 K8 z& A1 _: z
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
' g7 R, h* |" K' z, K6 u        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
3 E; c! v4 E* ~$ x        at java.lang.Thread.run(Unknown Source)# w( J- }6 K+ k/ Y7 P4 h! 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]! A3 a& D& V$ F: h# z
Possible solutions: getNeighborhood(boolean)" ?0 U! a+ ^( d' B7 ~1 l: d
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)* j" \) q: b7 |" [4 N
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)7 |6 Q# i1 p: d; X4 a; p
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
/ {# a4 i( Y7 x( d3 A* @, m! k        at FlowZombies.Zombie.step(Zombie.groovy:128): `' i6 p3 W& H! K
        
0 [0 \. C. F: Z6 m) v请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-12-15 06:08 , Processed in 0.015120 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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