流程图方式建模,运行时出现错误。+ w& d: U# ?. {2 O- N) X
表现为:小人儿和僵尸的icon都不动。
; J) c3 X3 i7 S5 qerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()" u7 E( G+ F0 A0 V% @) S" K
- G$ H" d+ _; t- p5 P* {java.lang.reflect.InvocationTargetException' j9 t/ F6 L4 s/ B
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)7 i, X8 `4 W# X/ Q$ {, ~5 n$ F9 w
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
( }) I3 g4 g/ @' ?9 |. O at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)1 W" c: [! f: }, Y4 M( O- ~
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253). H' v7 ^+ H9 r. j2 V! W
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)$ s' [0 P. i# r+ T
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)7 L" B* z# |% J7 K+ F
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)% W1 H- s) P: A$ R/ o" p- T
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
2 ]2 A7 c& R# A; P* j; n# L( q at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
3 Q' w7 ?, T0 @1 a at java.lang.Thread.run(Unknown Source)4 Q, t% Y) d2 m
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]
; o( g: b( o3 OPossible solutions: getNeighborhood(boolean)" l) Z5 {$ s! h5 E8 o8 l1 u/ o
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)! Q- Y6 X+ g5 @3 {
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
z3 E* }2 {( {* G1 `) a4 U2 M at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
, P* u( W3 }3 a at FlowZombies.Zombie.step(Zombie.groovy:128)
$ A" w$ v$ I* S5 m ) w9 m, F' d- Q* H7 ^
请高手指点迷津呀!痛苦中…… |