流程图方式建模,运行时出现错误。; L( [0 g& a6 U8 Y1 J
表现为:小人儿和僵尸的icon都不动。
$ i+ ]$ A6 L% C* derror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
: n$ `/ U$ p2 c9 s! V
; Q9 ^8 Z2 s# {1 ~' y7 f- ~# w9 {' Tjava.lang.reflect.InvocationTargetException
" p8 M2 h- a5 Z at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
3 \- R% Q8 K, C8 }3 U2 @# H at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)9 [6 R) v6 X0 y5 t: q4 u- Z; [
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) Q2 {: n- J1 O$ |1 c% Z( S
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)6 R* r( A% \) u, ]3 E
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
6 {2 Q7 g$ h, z h at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184). ^- S1 i- q6 p5 x/ F- | R
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
* `! i9 ?% v$ T+ o r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)( S6 d) m' Z/ T% `& T0 y
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)' _. c: u9 m* S& s8 D2 [* Z6 ~
at java.lang.Thread.run(Unknown Source)
, `( l2 M0 E6 B; 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% f+ W4 H+ z! W% i! j4 u) VPossible solutions: getNeighborhood(boolean)& X+ r9 C' s% P" g6 c& Z. ^
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)8 @0 t/ w X, }2 _( G
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)1 N- p2 g' z6 y. \; @5 V
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
$ |+ e2 V; t) H, x1 j6 a at FlowZombies.Zombie.step(Zombie.groovy:128)2 J- z# x6 |- ~3 P! a
- a8 p' e8 f4 W9 D0 G请高手指点迷津呀!痛苦中…… |