流程图方式建模,运行时出现错误。 & M# J9 }! u. P" Y& ]4 p表现为:小人儿和僵尸的icon都不动。: H1 ^' j5 d9 N/ b5 B/ a
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() % V% H" K5 }- x. H / [1 q4 J" g# t/ k8 b Fjava.lang.reflect.InvocationTargetException ; N$ m4 p2 G, l$ r4 E' [0 e at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>) K$ u% i# G z& B
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) / P" Q* O2 X3 @! {$ z at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) # |- b6 ~' P+ J9 I3 f at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)$ e6 \; k( w% \4 Q
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)0 w# k( [$ d6 Q- ], d1 r- I% N$ Y
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)9 g. p% B& d$ ]
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) 3 k0 `" L2 D) `6 \; J9 e at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352) % x1 S/ d! A3 ^" \1 \. e1 c at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) : d% `' ]- s" F. `/ t at java.lang.Thread.run(Unknown Source)/ p$ J8 R0 Q" x& i# Y. e5 l6 q0 i
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 V( x7 g8 `2 U) g) Y
Possible solutions: getNeighborhood(boolean), Z5 @) S' ?# D7 a! F
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)) p. [( u# o# x
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) ; N' L. f4 b2 ? at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) - U$ G2 v) N7 B; {$ p1 n3 e at FlowZombies.Zombie.step(Zombie.groovy:128)! X: F" z8 E0 e5 a