流程图方式建模,运行时出现错误。 8 ~0 @8 d! D% q1 n. N表现为:小人儿和僵尸的icon都不动。 ( i" U* ~( i3 Z! c+ {' \error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() 2 X- C7 n6 r& i" e5 e3 J X1 x" T5 N% m; u7 l) C
java.lang.reflect.InvocationTargetException - H. Y9 |" r8 L$ v6 U/ U at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) 0 ?4 A7 d- L, v" T at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)$ u8 k: w7 u2 m. H3 _+ O
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)5 ~9 |% Y/ V* r$ e) S. N" b. \% S
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) " F( R0 x4 [/ l at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) / q* t. x P( N! y2 k at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)$ P4 |( U" n3 Z
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) - D, k' W+ [+ G at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) / o" C; ~3 w: j& Q" r at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)( m/ \ x( }% ^- e% |8 A H
at java.lang.Thread.run(Unknown Source)9 {2 Z$ u2 f* C. F4 u {; V* m/ e+ D
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]" n: E, P9 }$ O+ j
Possible solutions: getNeighborhood(boolean); d9 p0 P5 ?& w# D+ b" [6 R
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) & B4 V) i& K$ d- x9 ~! t- \ at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) 8 R8 A7 G# _5 j* C% j* P at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) * Z M) H6 g" t$ x! x at FlowZombies.Zombie.step(Zombie.groovy:128) % w) f, {0 u$ a* ~# k: e O& v; ~* E7 i1 w0 B M' p请高手指点迷津呀!痛苦中……