流程图方式建模,运行时出现错误。% E7 h( N6 D6 U+ r2 q; X
表现为:小人儿和僵尸的icon都不动。
$ M( ]6 y- x" Q% ]+ l8 ierror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
- B" j: Z5 V& G9 O, Z# s" a
1 O# `7 [9 e7 m/ i6 t2 m+ d0 J: x' ijava.lang.reflect.InvocationTargetException
# W2 Z! z6 S' }/ V* H: l; b2 c at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
# S ~3 |: f2 {# } at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): n. t& K" J- e: b+ v/ F4 S
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
* S% P) O5 o8 y8 [ at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)& Q. S! E, I. t" X8 A1 {: w. T1 G
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)1 o- W' j S: z: m2 [7 l6 E
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
6 g3 a$ Y, e t at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 m, K, [2 ?/ L O' x
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)' s8 k7 g: I; }/ m$ E+ O; T
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)6 b( C3 n6 @* O9 Q7 q
at java.lang.Thread.run(Unknown Source)
# x: ]/ y! ~3 [* Q4 yCaused 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" v" z1 B$ |$ t+ c$ |& x
Possible solutions: getNeighborhood(boolean)7 ]8 A' Q+ X* d! | b5 t6 j
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
% a2 U, W5 C" L/ `8 p6 O/ ^ at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
& |0 }% n! l$ S: Q3 H& _ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
, N* k6 g3 B; v, D2 `/ \/ \ at FlowZombies.Zombie.step(Zombie.groovy:128)
- P3 c6 ?! _2 ?+ w( o& P 2 v8 U0 [1 d7 N
请高手指点迷津呀!痛苦中…… |