流程图方式建模,运行时出现错误。* f) K( o6 Z: t* c1 a
表现为:小人儿和僵尸的icon都不动。! W; g& j# E3 j9 V2 |
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()* J X Z' y+ C7 b6 c& y% \
: r0 `0 X* q; ^java.lang.reflect.InvocationTargetException& x1 {' V7 p* z
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) & h7 K; t$ |, q) E% E3 c+ o at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) l% R! d8 d. D' |: ]" d
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)" p! ~2 F# ~/ c% C
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) 6 s; X' N" Y8 A# U$ @: T at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) * a* H2 u; ]2 C p( I at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184); j7 ~0 M' L8 m. ?5 S9 t
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) ) |4 q+ C$ I ^. A8 v3 n at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) ' h; l8 H) X, @4 z5 h at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)4 a! H" h& |" h- ~( _0 y
at java.lang.Thread.run(Unknown Source)2 K+ _# l' A0 R/ ~3 I
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] 3 t2 p N c9 \; cPossible solutions: getNeighborhood(boolean); g; X( F* {- G
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) " m9 M" S- a) f( V9 M at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) F, A& F& N( |; I: D; b F6 b
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)" w# p, f4 @6 Y
at FlowZombies.Zombie.step(Zombie.groovy:128) 3 x3 H$ g/ ?5 h & Q2 V) n! k& [* h3 D7 Q T( S! W
请高手指点迷津呀!痛苦中……