流程图方式建模,运行时出现错误。
; P0 w x0 I" q. Q' ^表现为:小人儿和僵尸的icon都不动。
1 D9 R% O, C% m ^, Lerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
5 V, z/ E6 m) t9 q- P. I3 j. B8 U: h' t/ [
java.lang.reflect.InvocationTargetException
, }& s ^; o- Y! s/ O0 r3 g. F ^: _ at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 {" h0 ?) V7 G6 Y# X
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
7 x* Q# d( Y. G* g* D- a at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
4 e/ U+ m0 b& n8 ^ at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
" E* f, I o6 j1 c at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)* x4 b6 v2 ?7 ^! ?( u, q& q( a2 [
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
6 [, O, @3 l- P' Z8 ^) Z) L at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)9 l7 F5 z3 v" r' n
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
$ i0 G; @# O l/ n6 k* [6 U1 X* z at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
" Y, y! U& T+ ^1 C* z0 ` at java.lang.Thread.run(Unknown Source)
, ~, r2 R& ~" Q" N9 s+ ^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]
6 c7 I% g, l3 [ HPossible solutions: getNeighborhood(boolean)
* n0 J# v0 E* ^3 B: J at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)" s) |7 t: l; \5 [! m
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
( X% C) S: J6 J0 D: Q4 M at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
+ ^% l$ u# `5 y) h" A* _ at FlowZombies.Zombie.step(Zombie.groovy:128), W# d- ~ j# t1 u6 W
# V0 V6 h$ p# d
请高手指点迷津呀!痛苦中…… |