设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5801|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。
! C' {; d  ^9 i+ u表现为:小人儿和僵尸的icon都不动。8 A1 j" h( _# I
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
8 v& [* ?8 s; }& j3 r: q, z0 P+ R/ j/ A7 t; G, ~
java.lang.reflect.InvocationTargetException/ N& i6 v- C- X* P
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
5 }  u% G3 {) o& \        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
; B" h" {# p+ E# l8 X  j- G        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
$ R4 Y& v6 U! K0 X. [1 G        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)) M7 S6 C& o! Z1 b) K7 o; H
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
/ q7 D" Y( V9 d" i        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)& [/ G1 g0 F6 b' B9 q4 j' p! _) p
        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
- i( D% L* |5 [. k1 p2 U- ~& x" l        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)6 m3 w3 T. O" Q
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
$ }$ u& x  ]( V        at java.lang.Thread.run(Unknown Source)
0 x9 _9 I( y. @. Y! i/ n1 q# VCaused 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]
8 T' ^/ }( |% x/ T. w+ o9 t' S) C, UPossible solutions: getNeighborhood(boolean)
- A$ r* z: f4 r: d        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
& m: c% {, B* a0 C  @; i4 ~$ ?        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)! V. M9 W5 n& O7 ?3 R0 m* ~
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
2 J7 s, p8 _3 g8 t        at FlowZombies.Zombie.step(Zombie.groovy:128)
# i, A! x1 D7 c7 d. W$ j        + ?9 _* R+ E) c  {9 R0 a7 S8 |
请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-21 14:08 , Processed in 5.622984 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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