流程图方式建模,运行时出现错误。
* r$ R/ U- f n R表现为:小人儿和僵尸的icon都不动。
, `5 {* i) x+ E+ \error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
4 b v( O4 ~2 M0 A% h& _3 ?7 L# B
, M$ n& P" a1 K; @; `java.lang.reflect.InvocationTargetException3 M) J3 V4 H& H Q/ D" t: d k; h g! U
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
1 s5 ?0 U& J$ \% Q3 n at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
) O9 E0 ^1 m h2 T8 `" U) S at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
$ q" U( `% V5 d1 l) q: t, i' s at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
1 g @1 x# u3 S7 M; ~ at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)+ _, S+ x, w6 u( A7 D
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
$ q" u4 y0 T( H! K. b$ G at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
3 K2 g& C7 Q P7 F+ x at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
: W/ X1 Z4 v+ s' S( s at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
# r! f0 |4 J+ _( I% D+ \& c5 I at java.lang.Thread.run(Unknown Source)) c( T, a% _/ d7 u& h- q
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]. G7 ]$ D6 k! `5 V3 Q0 {
Possible solutions: getNeighborhood(boolean)
0 c4 ]( b7 h1 z# T at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) {1 W* Y! Z/ c' S% p9 [6 s
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)/ C A! Y, z% u& Z
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)/ t. e& L9 P. z; S2 n* w' Q9 s
at FlowZombies.Zombie.step(Zombie.groovy:128)
9 R U$ t5 S: ]; z5 r8 x
9 V0 u# Z7 a8 ?请高手指点迷津呀!痛苦中…… |