流程图方式建模,运行时出现错误。 ' ^0 I7 D* d. m$ H- G# a+ |* O. ~2 y表现为:小人儿和僵尸的icon都不动。 " J5 c: h! V" `$ p6 S8 I8 eerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()( v+ `4 K' E% u1 M% E; k4 E
. R; a9 H3 B$ x# Y! e9 A5 c9 q( U
java.lang.reflect.InvocationTargetException' i x3 e: e* y" }+ s
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) - D. X8 a* {* Q7 w$ k* h! ~* K at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)+ l5 h! p2 p9 u# r( H7 i; |( T% Q
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) 5 i" y. y+ W& G! K at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)* X ^8 F: e- p4 y
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)5 B# L6 c' P" t. Z
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)8 [$ Y1 v0 l1 @! H
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 1 Q0 t) Q: i* c8 D# L* m+ i. y! T at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) 0 A, d2 K* x& D$ `3 U6 J at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) . n% V" g1 C' E9 J% ^ @, x at java.lang.Thread.run(Unknown Source)7 y* o: H ?1 X4 |+ Y5 R! `
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]' d5 i, M. a! d b+ U
Possible solutions: getNeighborhood(boolean) $ A; G; O) {1 B7 u5 C at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) . {+ u0 B2 ]5 s- L; t at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) : o3 ^/ f5 `. Q \ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)! e* g/ b5 L2 X9 Q
at FlowZombies.Zombie.step(Zombie.groovy:128) " e. Y" S3 c$ B0 K 2 L- Q* q5 w! [( I% \! F4 E
请高手指点迷津呀!痛苦中……