流程图方式建模,运行时出现错误。
, f' k8 i! c+ L# I7 y' Y4 r) ] @表现为:小人儿和僵尸的icon都不动。# o) q/ z' B7 P3 I( @
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()4 |0 K. R8 @6 G3 k. ^' _- `4 f
3 A2 e) b. l" g% \. u" H8 g
java.lang.reflect.InvocationTargetException
2 R7 h6 m$ P; X% M; f; { at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) {8 g2 T) |5 E9 R+ r2 y4 z
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
6 N" h: I# Z+ _9 n3 q" i" f" K at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
4 m1 C$ c X' }! b+ C* ]* y7 V at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
5 Y$ R1 K* }& |, m at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38): t# V" u! V$ [4 X3 j
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
e' d q" z# x1 S* y7 }+ F at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
$ n, B. t+ k+ [: N5 _! H% A' b at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
3 }9 u# I. l: D: |) D5 N/ c at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
! c, X5 b# ~" I+ f7 x2 l8 K at java.lang.Thread.run(Unknown Source)
- U" G' ~) G* M1 O, `+ R P7 ZCaused 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]
% R3 X* ^) N- c6 \- hPossible solutions: getNeighborhood(boolean)# S9 G, V0 d! y- b6 o4 e
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
. j. Q: \5 j6 f% t at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
! L7 M d, \& F: V$ A at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
5 e: c! Y& n. U+ N- V, U5 a at FlowZombies.Zombie.step(Zombie.groovy:128). Z$ J7 |9 @' s( C. @, T
0 R# q8 k& L# l请高手指点迷津呀!痛苦中…… |