设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6001|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。
3 c8 _% e: ~6 M: S* M9 L表现为:小人儿和僵尸的icon都不动。1 g; V, C" V6 u3 h' f# I8 S
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
6 n# Y" ?- b! C4 `2 x" h1 S7 p' q
0 m. \) g3 a" C+ X' T$ ejava.lang.reflect.InvocationTargetException% {4 `* a# B# ~6 ?0 g
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)3 n: e$ c& M% w! o& w' S8 v
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
8 c7 O* ~: p7 M  F; t' D        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69): f: l8 B9 O. l; q
        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
- j$ C  J5 D% c3 A; Z; D2 z( R        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
4 z' K5 Y$ X: y! p& ]        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
% @/ T0 A+ Z7 T4 a! I        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201), I: J: f6 M& J) ^1 ~
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
# I$ j2 H$ t' E% D( f  F0 J0 N        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
- Y$ E8 L7 ^% l5 g        at java.lang.Thread.run(Unknown Source)
' h6 g/ D$ j( _6 ICaused 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]
/ ^1 H6 R% A' u/ bPossible solutions: getNeighborhood(boolean)
5 V+ p( L2 d1 p' p( i. v4 j        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
" w5 K2 l* ?1 ^3 o        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
" v, t) {/ O0 \. h        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
$ A4 @# M8 g9 C! f8 F- ]        at FlowZombies.Zombie.step(Zombie.groovy:128)
. v' Z! L9 W3 f$ [1 P" ]        
" j) }7 S$ o) a4 @+ L. P* E" @2 t请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-28 23:27 , Processed in 0.012592 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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