流程图方式建模,运行时出现错误。3 {& I7 Y; }# W( _7 T* l' |
表现为:小人儿和僵尸的icon都不动。
$ C) [5 T% Z* Q) }2 rerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
; @' ]- Z2 J, @$ i
2 m3 X ?2 U( B; c9 L5 T7 rjava.lang.reflect.InvocationTargetException
& c8 v( Y2 x- o# S. h at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
4 w5 B* A }3 U6 ~" O/ O6 E e, W* ]& ? at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
5 m1 y2 q" o7 T- f# }1 o' a at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)# ?0 {$ d" b' [4 f8 J4 u1 c% s
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)8 ^( X S9 U; V( x* o
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
' ^9 o2 X' N6 Y1 i/ ^9 P3 Q' X at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)" H% Y( o7 ?- `, y! v& @' A
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)% \( h1 ^/ q, s/ a6 h8 u: ?
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
$ P9 [2 m% k- C9 r2 O at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53), k' `. P+ {# J! y4 q4 ]: Y6 z, N
at java.lang.Thread.run(Unknown Source)8 G8 R3 C% \# \, O, I
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]
: W- h9 u i! q9 l) O2 f/ L% UPossible solutions: getNeighborhood(boolean); @% n- A- X7 j( y
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)8 R/ A5 w; b3 H- Q
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
3 O& C; S( R8 p! k0 [ at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
{. I+ t( Y8 h1 U+ g at FlowZombies.Zombie.step(Zombie.groovy:128)
5 i0 Z" P! P' Y' L: o8 {
2 V! `" A8 D/ o% V. \请高手指点迷津呀!痛苦中…… |