设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6076|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。
0 L! C% Q, N% j: `2 b表现为:小人儿和僵尸的icon都不动。. F5 f4 C2 [5 U
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
. F$ i; V  c* n) X
) \7 V# ^/ G( Ljava.lang.reflect.InvocationTargetException
: G: Q2 x% R% N8 p3 E        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>). u7 t- ^, I: s  `6 Y" `! V
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)+ b& y/ T) _8 G
        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)& o1 L2 x; Y6 O$ |
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
, m& Z7 I" G* x9 f8 C        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
$ U+ `" l- x' C$ U+ \" ~        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
% D  H/ f  d' q$ Z' o( U        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 x0 L& M1 [( m5 Y, {! P1 e5 D
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)( `% i3 Q( `, {8 h
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
8 W7 D$ ~3 ^& b/ f% f/ ?" ?- ?        at java.lang.Thread.run(Unknown Source)
3 a, M8 I+ ~$ @5 T4 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]
) p! X4 n( c( d( Q* S( c$ tPossible solutions: getNeighborhood(boolean)/ e4 A- i# D5 w5 o! W* ~8 x
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54); [; M, J6 d/ |8 K  ?
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46), I% W4 f- K" b2 g  J" W
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)/ Y) D2 x1 x: W6 u
        at FlowZombies.Zombie.step(Zombie.groovy:128)
* b1 [$ D# p4 N. q5 }; K        
+ W: `- Q1 j& @0 G2 i% x请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-9-14 13:55 , Processed in 0.021031 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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