流程图方式建模,运行时出现错误。 ! o( G7 I G6 m' l/ `( K9 X+ T表现为:小人儿和僵尸的icon都不动。# \+ x1 J' \3 z2 X# K2 O+ W
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() 3 \" o- X( p" v 3 N, I( U9 D0 Q# L3 y& N4 q) Q, Zjava.lang.reflect.InvocationTargetException 6 b8 K7 S4 M' b. Z at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)* Y' E' H5 n1 d, y5 c/ B6 {
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) 1 S; e& j4 h# R) M" t at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) 6 s# s3 ^( u' i7 e& ?& {0 } at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) & ?* l" T1 D3 L# l at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) " `! ~+ G% b. j' }' A at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)/ j' X3 j: ~3 O" p/ n
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)9 E" e2 g$ Q) @3 J t- M& q
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)7 s. S& N' N) r+ r1 m( y* ^9 N# V
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53). M' |7 g3 L |
at java.lang.Thread.run(Unknown Source) / r# I9 N \$ d) vCaused 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] 3 B4 |% `/ N5 @) R0 D3 J+ Y APossible solutions: getNeighborhood(boolean) 7 B" {- ?" H7 e4 m$ l' W at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) ' w, \* ?! x& H8 o at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)- z7 S0 a# o. o7 a3 w5 C
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)3 ?; V8 w' _: `. R0 G
at FlowZombies.Zombie.step(Zombie.groovy:128)# j# ~9 f( k* p" C