流程图方式建模,运行时出现错误。 8 f6 ?: k! x; C2 o% [$ I表现为:小人儿和僵尸的icon都不动。9 {! [- i h5 ~' s. m* H* N
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()3 n' B" h& w' I1 N p0 c+ j& W
2 S2 l/ ~( H: Q
java.lang.reflect.InvocationTargetException4 W1 ?; `' q0 l5 |7 t _
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) 0 z6 ^! n* b1 b" m3 f9 S$ ^ at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) , \/ E. o1 y+ M3 W# V! R6 @ at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) . ~. C( l b' s* H) I8 [3 ] at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) . F. {) V* @5 [' p; v$ H6 b1 g5 O at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)# @" p9 [3 K4 X& ~! o9 o5 g' B
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) 4 X% H- E! O. c" v1 V! t1 f at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201). f! I3 F# q4 V( v! L
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)9 f- Q; } m) t& w' O. m
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53). m* R! E' T5 _' h0 Z2 @
at java.lang.Thread.run(Unknown Source)5 F {+ Y' `$ H
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], ?% @; T S" p) p" u
Possible solutions: getNeighborhood(boolean) . x$ \4 G( F7 x$ Y( J at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) $ A3 t1 h" D; x8 H: ^9 g+ Y at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46): d+ k/ J4 w& a/ y- W
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)+ F$ e0 H1 O) j8 i
at FlowZombies.Zombie.step(Zombie.groovy:128)& o3 r }. `; G; `; Q