设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7593|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。' l9 i2 |2 ]& t7 z; g1 R
表现为:小人儿和僵尸的icon都不动。4 S, x2 R+ D9 F! `+ T$ H+ L
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
/ M* d& c6 p% h1 u( K* \# ^  F2 l
1 Q' `% X/ y2 O% O# [/ Ujava.lang.reflect.InvocationTargetException
& N9 J3 l8 Z- W; G6 Z6 @        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 `2 H' g6 Z9 W- |# [0 u2 d
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
& m2 C4 ]1 n5 I/ v; R7 Y        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69), S- I$ X8 s4 M4 ~+ s  I
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)! a/ D( L9 c# w4 X5 M7 C) _
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
; y- ^3 O* n1 b( Y        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
+ L- v+ l/ @  y  _0 D, r        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201): I0 ^9 E8 h5 g( _1 W) _" m6 P( F
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)/ @# d" B& z$ M9 G
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)  \4 b) O3 P- }$ q
        at java.lang.Thread.run(Unknown Source)
5 N# n3 ?# z6 W. ?" w; PCaused 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]# p3 h. B- f; n  s& f
Possible solutions: getNeighborhood(boolean)2 U' B, o* ?! {! @  \
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)) T- m7 X4 [  b( \7 D
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)' Q; _$ f& a8 v8 O; |  x
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)2 a" I7 l6 L  P" r8 p3 E4 |2 C
        at FlowZombies.Zombie.step(Zombie.groovy:128)
  v$ S; D+ ?3 Q# J3 ]# g9 l4 h  \        
- a% a( m. A6 w+ }& c! S0 D请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-7-28 18:47 , Processed in 0.015136 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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