流程图方式建模,运行时出现错误。 { O! Y5 h0 ~8 }
表现为:小人儿和僵尸的icon都不动。
+ `6 P3 L: R4 F, zerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
8 X- T1 W1 i E/ `/ Y/ u
: |8 n4 G' ^9 K9 R1 Kjava.lang.reflect.InvocationTargetException
2 l( i7 j: |5 y& _( [ n at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
7 D2 ~" l' p1 X5 w& b at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)- T3 d! r, Y, T; S5 Y
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)! Z! A6 r, V; r7 T5 N% u% x
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)" N. Y6 [& o5 d4 B. h7 r
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
, F& Y2 ]) m n; ] at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)! M6 t7 K! Z( t7 j
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
: S! U, b; [% M* D3 v at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)% o# L4 C: u! w9 x! V4 t! c. x7 p
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
( \. H |3 N( A9 s at java.lang.Thread.run(Unknown Source)
* ] ?8 G3 N8 s' y C+ x5 lCaused 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]. Y ~' `- |, u+ B: U9 s) }: a
Possible solutions: getNeighborhood(boolean)
! E$ p3 t! E+ C2 O% L$ b4 _/ o at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)% c3 t& [3 k9 L5 z. G7 o+ K0 \
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
2 Q* n' k, \8 g4 x& `, Z- |2 C2 S at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
p8 o4 U+ c+ Q" s, J at FlowZombies.Zombie.step(Zombie.groovy:128)
5 e2 h3 T: R& P' G" O
0 L% {/ i) u5 o y1 ~请高手指点迷津呀!痛苦中…… |