设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6871|回复: 1

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

  [复制链接]
发表于 2011-8-30 16:14:56 | 显示全部楼层 |阅读模式
流程图方式建模,运行时出现错误。" b6 N2 q. ?) F7 h; }: Y. K  ?# D
表现为:小人儿和僵尸的icon都不动。
& }1 ~* U' G3 R' {error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()1 A8 O; a% ^0 Q# T  e
& t% t( K% f6 r: L
java.lang.reflect.InvocationTargetException. G) I7 L( e. W5 }( U4 {& ^' S
        at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)/ Y0 b4 R" X* O# }( g* L# v% l2 h1 ~
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
$ \7 x6 b. x! m/ x- T6 N; H        at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
; C0 X# F9 o" u( g0 Y        at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)! i( g4 V, A7 I1 [
        at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)2 ]8 }3 ~" @+ k7 o" T; G. Y
        at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
8 J# b7 ?; p7 c! ?; B3 W' K" Z        at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)6 @5 u) s0 R. J+ h; f7 {
        at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352); b7 C+ d1 v9 p& t% j% S2 @
        at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)& C( [9 x" {( c6 s
        at java.lang.Thread.run(Unknown Source)0 u' p# n: ]- K
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]
) c" Z+ O: A3 {% Z2 k7 ePossible solutions: getNeighborhood(boolean)
, Z4 B1 v- E$ E! x        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54). g- n- A& m8 F
        at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
  c6 ~$ Q; b) J4 m2 c: E3 M4 O        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
1 x7 E9 G& I7 Z) j. ?5 m        at FlowZombies.Zombie.step(Zombie.groovy:128)
2 K( a+ i; x* Q9 c: g8 R0 o        
* T$ C% Q7 ]+ W2 J请高手指点迷津呀!痛苦中……
发表于 2011-11-23 13:01:02 | 显示全部楼层
你沒有沒去檢查step()方法內的程式及call step的地方
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-3-5 17:48 , Processed in 0.013993 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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