流程图方式建模,运行时出现错误。/ }0 O2 P$ K& j: @& Y
表现为:小人儿和僵尸的icon都不动。5 A- [/ o7 O( E/ r! l _9 ?
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step() / l- K* } A7 `2 E' F) ]1 g! [ # a7 K9 P* {1 w* M4 _java.lang.reflect.InvocationTargetException . @9 P# \0 b* u& }- ? at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)4 u( k) A5 _$ h4 e
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) ]5 k7 \5 O3 W( T
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)) q; Y. J1 ~8 n' ~
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) / M. w3 l1 _8 O; k( m$ b8 l at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) & b5 c M+ X5 M Q) B at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) % a) k+ o1 B- V) a+ v: A- r at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)% W7 X/ m8 E, U- Z
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)+ u3 G6 R0 d* s* m7 ^- h0 b
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) ]$ V$ x9 h# h5 M- U at java.lang.Thread.run(Unknown Source)' Z% [' i2 V: K* N" P9 q
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]' [( b7 F, z7 j/ M$ v
Possible solutions: getNeighborhood(boolean)! s ?$ n0 d" [) d( b2 R
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) - d1 O9 M' u5 o4 t: w H at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) : P5 H2 i3 P/ e& k at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) 0 D+ I( K r# l) t at FlowZombies.Zombie.step(Zombie.groovy:128) . H0 M$ C: J! N 3 p2 Q8 t) h K0 e w! K, {- _; n9 R: q请高手指点迷津呀!痛苦中……