流程图方式建模,运行时出现错误。
# X c, C/ `8 y0 |表现为:小人儿和僵尸的icon都不动。
. d, b1 I6 ^" m4 D0 ?! kerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
% f: b, c9 h1 @% A9 z6 y" R Y7 o
7 D0 ~# n4 o7 v" sjava.lang.reflect.InvocationTargetException1 |) o, a+ K* \
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)/ |- T \* H" L
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
* C0 |* Z9 {7 ~/ C7 M; O8 ? at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69); o5 G4 t5 o: i$ M, Y% j& \# v4 m
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
3 s, ]2 a7 q! i9 u4 y( }" C at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)$ `4 V' h4 h5 n/ I. `3 R5 ]8 U
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
; A D! ?& Z! z7 _" C9 r% B at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)4 [ {4 ^2 G+ M6 X" x
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)0 N1 i* r+ l' A9 g
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53): F0 W9 x7 e9 h7 U& \
at java.lang.Thread.run(Unknown Source)- z! j3 c5 ^9 ^' X/ ^: s6 z
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]7 a, ~. r! i, _1 r/ S
Possible solutions: getNeighborhood(boolean); C/ N- A4 |$ T
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)1 E1 Y- a) {, s! V
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)3 r; L1 F, h. l w. Q) ]
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
+ W2 w7 V4 B5 G7 f& H% e+ U at FlowZombies.Zombie.step(Zombie.groovy:128)
7 v2 b; ~# ^8 h2 s( E% P
0 W( M f7 R# i5 i. \0 l请高手指点迷津呀!痛苦中…… |