流程图方式建模,运行时出现错误。 - j9 n8 k$ Q7 G) A: _表现为:小人儿和僵尸的icon都不动。 - |- s! V5 s" u( U/ s' w6 ]error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()1 Z1 d! T1 v/ J K
* G0 l$ {6 P( G
java.lang.reflect.InvocationTargetException 2 u- P2 R+ o7 P$ v- o l at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) 9 Q) f7 K! ?. Z. d% [; v at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)# _5 _ R) ~/ h% o3 N! c
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) . o% e4 d9 d0 g- J5 L W- l9 v at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)3 F+ Z6 b& i# ^* N
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) 9 ]* O' \' C1 P4 x7 F at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)! K0 t& y" v4 z
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) / _ p! q! j1 R' Q6 F0 f" O at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)# G& j" m; U& _: _1 s
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)4 v2 q" t* B" _2 ]$ K* _+ c! b
at java.lang.Thread.run(Unknown Source)2 p1 Z1 a& _; Z2 U
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] - I! k/ W- z3 o' f7 w/ ]' S5 |9 KPossible solutions: getNeighborhood(boolean) ! l0 e; L0 X3 `0 }) m at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) 7 Y& q8 h& U% e% k4 l. g at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)4 @8 J( g- f9 n$ U/ _0 ~
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)6 s' h0 H' Q' w: a$ H2 [ _; u% n( F
at FlowZombies.Zombie.step(Zombie.groovy:128)1 F2 k- E- e$ |) m v