流程图方式建模,运行时出现错误。 . z: f" ]3 O1 G6 c* R8 g表现为:小人儿和僵尸的icon都不动。' q( `- P9 \7 ?% u# U N6 J
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(): Z ? }3 ` h! m6 `9 Q
: k- H1 z/ z m' O4 Djava.lang.reflect.InvocationTargetException, P u* N- R6 |; N9 `
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)! D1 k3 I2 @3 D2 F0 Q7 T; q
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) ! E% q& }3 A# z$ N at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) ; `( C, p& y R' c4 Z at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) ) V; F/ U7 b2 e" ~ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)) S& m' W/ Z3 b
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) ! D- ^1 _/ \; W at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201) ^1 O6 H8 ^ s* w
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)" N3 E8 y# O/ d# D) m3 y. b
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53): u3 b( y5 m1 m6 l
at java.lang.Thread.run(Unknown Source) 3 Q2 ^; e( g' v; n7 \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] U+ U* C! G+ x9 ]5 g
Possible solutions: getNeighborhood(boolean)3 H8 z1 }& S/ f- @2 d" ?8 u
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) 2 F- T: \9 }2 a' O" a; ]1 e5 o( d at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) 6 j7 n- {# `$ a3 l9 L" B9 P at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)' ^' B- R; F' F
at FlowZombies.Zombie.step(Zombie.groovy:128)# E( x$ G1 y2 e& ]3 v% X- U