流程图方式建模,运行时出现错误。" \' o3 U2 {" A0 G7 ]! `* P2 p
表现为:小人儿和僵尸的icon都不动。
. c; c0 k$ _# W' Ierror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
7 b, W& n+ b6 S5 s2 n6 i5 ?
8 Y- y6 F4 T- C7 Djava.lang.reflect.InvocationTargetException0 x% n, v2 `. `% A( p- i
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)7 z. T; `: \$ _; A+ F- S& X- D( |3 Q2 k
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
! h3 F" I9 k( S! \ at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69), F+ J ?4 t) w4 {0 `" w0 |
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)5 M6 e+ O$ n# M) Q. f1 o
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)0 G+ C. H- |( M0 a7 u
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
" O- P8 \# H" x# G0 P8 G7 d at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)% Y) t$ n, a. G( [
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)8 l: D( q6 a- O7 g" w
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)7 a1 T* H( h" v" |- L
at java.lang.Thread.run(Unknown Source)3 O" X+ c- o; N
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]
1 I1 O/ e/ I* ]' i' C3 W- D# y+ OPossible solutions: getNeighborhood(boolean)
& l P4 ]* l# I/ j' _ at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54): P0 g- M# F0 @! o1 l/ n
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
) r+ b0 |; t9 n+ E at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
$ c/ \* s% o7 c) k! I/ m b at FlowZombies.Zombie.step(Zombie.groovy:128)
4 Z) t# H) a3 T' ^8 j 4 W; t' F" q; n% k, w/ Y9 u$ J
请高手指点迷津呀!痛苦中…… |