流程图方式建模,运行时出现错误。 # R0 B3 u7 E A9 g; b1 C# ?6 R2 `3 h表现为:小人儿和僵尸的icon都不动。 ) b$ Z. p" s' i: F+ I0 zerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()4 K9 M% x- K. V+ p
& c4 b! w! I3 N# L( E; x# P' u* A
java.lang.reflect.InvocationTargetException+ m; X* s5 ]) K- X
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) . ` D8 e( N0 |4 N at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)) L* w9 p0 O; v' V: G
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) i& y& B# Z( ?' C L3 h8 n1 o* \ at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)/ V/ i/ U: h7 f. r2 f$ G
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) & C% z/ X% N# Q( x: O at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)9 D. W$ \! C5 l, T6 h# Y8 O# L
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)' {8 r0 w$ B) q/ M. v9 m
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) 5 ~! H0 P( N8 d) L, ~ at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)' ] i6 T T- B
at java.lang.Thread.run(Unknown Source)8 X/ E7 l0 G. A* \- f/ R ?. c
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] $ K% j3 H+ Y+ T; B0 f! mPossible solutions: getNeighborhood(boolean)( k N$ L. S8 v c
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) ) E2 p. B% H) l, B7 |5 M at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) ; F, M* }/ j! q" R& z( ~ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)6 K @) {2 U" P6 C$ f# f
at FlowZombies.Zombie.step(Zombie.groovy:128)+ @' a$ g3 ~; s