流程图方式建模,运行时出现错误。$ {: V, Q1 c/ X/ A# w/ n' L+ i
表现为:小人儿和僵尸的icon都不动。 + {" ~9 P5 @$ Uerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() ' R: I* d, v' g( b& o! x0 g/ }* O- J& t! B9 t% _
java.lang.reflect.InvocationTargetException: h0 X6 }& y* O
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)5 G& d0 U5 ~/ K# ^4 m/ Z
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): T+ E f! j# s/ `- p
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) ) H$ I) S: B8 |+ w at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)9 y k) @, J3 V
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38). r3 O M1 H+ _3 B7 b
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)" T3 i' R G3 j4 S' x2 b
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 6 Y4 j8 R; x' Y% m( R: C at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)8 s/ x- J. A5 }( R3 C2 P/ b
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)! l7 n0 G) L1 m7 E6 Q
at java.lang.Thread.run(Unknown Source): r! b4 X$ s1 ~2 t/ J- R
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]8 c+ t! H5 y+ I4 |$ F( r
Possible solutions: getNeighborhood(boolean)* y9 |! f6 m$ _2 ]4 O# @
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) / ]- U! `( c$ a8 e$ X at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) ; a4 C/ [/ U' I/ a( M at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124): y$ A& J* o4 F* I' } [
at FlowZombies.Zombie.step(Zombie.groovy:128)1 S9 p) x; R! S8 O' \* w7 i3 }