流程图方式建模,运行时出现错误。 2 O* h% R, W" c# _7 P表现为:小人儿和僵尸的icon都不动。8 N. }/ f+ B7 }
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() / w" \/ p6 ?. `1 Z& i( t ( K }6 w1 T& w4 e: \, hjava.lang.reflect.InvocationTargetException 3 V l6 k* q- [) a L% R0 x8 h$ G( F at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) / @5 z3 b: E2 b. k( O9 k( b" d at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): M' z+ J3 q/ z- P ]* E
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) # |+ H6 K E$ [9 ? at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) ) L% \7 S1 ?$ y" L* J7 j$ S at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) 8 X( i2 S p: l& J at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) 5 h/ `$ n# S' T at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 3 c* r1 t5 u( @# f9 E7 b7 v: r at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)2 y( s/ Z8 p2 x+ `( ?
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)3 t0 c1 x. C9 L+ l: ^: d
at java.lang.Thread.run(Unknown Source); b* J f& x. e& {! o
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' r) e5 n/ n
Possible solutions: getNeighborhood(boolean) W# Q' w* t5 R2 p' I
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)8 |# C* I% \5 s) n
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)1 k, j7 k2 U- o. I" r! e
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)- d2 Q7 }% B0 k. m* o
at FlowZombies.Zombie.step(Zombie.groovy:128): F- \8 Z: w* j2 i/ C