设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7807|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。# h# a  e& i3 o  W5 u
表现为:小人儿和僵尸的icon都不动。
" V& A  F" h9 \- ]error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()0 m  W0 y2 N  N. p1 V1 r6 n2 P
" X% x# [9 s3 }: Q
java.lang.reflect.InvocationTargetException
) S1 n8 Y* E  A1 I        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
7 w4 d7 E3 c% K        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): {/ x/ u% k& J% {: t5 z
        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
8 s% d  a9 O6 |, E! z        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)" E: c" E; Z; [5 @% h
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)1 F  f; x# E: K2 [* D% H9 o3 h: c
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)3 O% q: A$ ?! `. T% c- Y
        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
. ?: S% T( k6 x        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
7 S! L2 C* G6 n        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)  \8 B2 L; U% l7 @
        at java.lang.Thread.run(Unknown Source)
+ |8 u/ j/ n; ]  K$ KCaused 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]
; r/ L0 V, s0 W7 ]4 |5 @Possible solutions: getNeighborhood(boolean)
0 D0 {  q4 r% s, I9 a9 L# X        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54). ?4 D  j9 Z+ D) t
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)9 N8 b6 T' U) I
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
- e" G: E% i. N2 w& {! [        at FlowZombies.Zombie.step(Zombie.groovy:128)
! C( ?9 d* o% n6 W# i( X6 R# R+ q        
5 i$ M/ |7 o& _5 v0 v, f请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-12 06:38 , Processed in 0.017670 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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