设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7834|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。
2 x: ^7 \/ W$ n表现为:小人儿和僵尸的icon都不动。
+ e1 e. d6 ]' h/ G$ A- Aerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); m6 c8 x, B1 K& J
' t" i$ B, y  u( E7 j; J# Y6 s
java.lang.reflect.InvocationTargetException
  m8 r$ ~0 C. F9 A        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)2 T! L2 _6 n% P7 w9 d0 y
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
2 ]' N% l, @, }+ b8 D, E/ ^        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
8 P# X* `4 z/ u! ~        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)/ N9 A7 L  E# _/ K# p2 y
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
4 j3 v4 n7 @0 `7 y) H5 G- R, a% j        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)7 @! A$ W9 l& [# Y" D% h6 Z
        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
* v' r0 B9 {) g" V3 o3 N        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)4 v% t0 @4 S- W; g" o; j
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
& w. E( l% @1 E2 M4 D* h        at java.lang.Thread.run(Unknown Source)
. w. B- Z; }) D1 L+ x; ~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]  ~0 @+ J! d- g% L/ J7 S) d1 k  p
Possible solutions: getNeighborhood(boolean)' c( M) ?# N! y- E4 ^
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
5 a" D2 B3 ~& i3 x3 ?7 a        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
/ Z, X6 r7 S8 Q; Q0 I8 d        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)3 g& J7 ^' r4 L8 G! [' H. u1 j
        at FlowZombies.Zombie.step(Zombie.groovy:128)1 R/ a. v, d1 }! I4 C
        / X5 A, Z2 g6 W3 c% u. I
请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-16 08:50 , Processed in 0.014022 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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