流程图方式建模,运行时出现错误。6 W- w# a3 e. E$ _
表现为:小人儿和僵尸的icon都不动。 d! \- f/ K5 S) X! u4 ?
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()1 ~3 T# [2 y# l
' j* l+ ^, B1 q- g; Ojava.lang.reflect.InvocationTargetException3 V. q; S1 S. m7 b: z
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)7 G9 r6 I' s+ v' i1 y }& P
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53); {" b8 a) Q5 Q% i4 [9 D
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)1 C& f0 o" W1 b0 ~
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)' F5 `+ }! p/ }9 e; o$ o9 w6 f
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) 8 C& ]7 B4 n* [ D2 G0 D at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) 2 W2 _3 c4 H- g at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 8 R5 x4 j/ [* _0 G2 E1 _8 }" N' B at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) 3 f X; k% H9 J at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) 5 s# W4 Z4 o. N! r' r! W at java.lang.Thread.run(Unknown Source) 2 n D+ O u& O6 x' OCaused 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]9 F t0 ^0 R3 |4 W
Possible solutions: getNeighborhood(boolean)+ M" O0 D$ G4 s/ B5 P
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) d% g; P/ h4 S9 C at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)9 O, p% u( @& e
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) + `2 O2 i( h0 a0 T0 S0 a$ P at FlowZombies.Zombie.step(Zombie.groovy:128)1 ^% V% N/ d# u2 ?