流程图方式建模,运行时出现错误。
3 U* r7 v0 S1 _ j表现为:小人儿和僵尸的icon都不动。
! |3 \, J1 \+ W! G' [error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
; C! |1 _- o) r0 ^/ E D. e0 k- U8 x$ C' d" K" i
java.lang.reflect.InvocationTargetException9 `, }( \& S, i3 \0 T( }
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
6 Q# T) ~/ n' o% L6 | at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)3 Q7 G- d, h" N* U0 ?
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)5 C5 V) D! T/ M& s0 P5 w. P5 w/ {
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)4 _/ t+ b& {$ x( i8 _5 w
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)7 V" {; B( d8 F( M+ A3 d
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184). A$ T% ]) X# x( ~/ V6 o1 V
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
1 S' ]; K/ ~# x! {% w8 @) E at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)# j1 ~! |( |! l: X6 P3 m
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)9 O1 t/ t" B: m: f
at java.lang.Thread.run(Unknown Source)' A4 o* [/ u; l4 G- p
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 ~8 \# z( {1 A2 o' C2 @! jPossible solutions: getNeighborhood(boolean)- O0 S8 r6 `6 D% |& O
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54), i3 Z+ Y9 ?7 W* k7 b6 f
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
( U: T" y) A: Y+ p- L at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)/ b- D( k! d: [# y' w
at FlowZombies.Zombie.step(Zombie.groovy:128)
; s3 r& p+ s/ f0 n
1 {9 t) D5 d8 @' H0 E# y请高手指点迷津呀!痛苦中…… |