流程图方式建模,运行时出现错误。
0 g0 o! x6 v" y1 d, `6 P4 X/ p& N. J( |表现为:小人儿和僵尸的icon都不动。
* d$ y$ J4 o& V5 ~9 P( F8 p9 Lerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); l8 p7 M) [ Q! {7 o* p
- f+ z' l8 i* V0 x* m {7 F( P
java.lang.reflect.InvocationTargetException2 L# }6 h8 J+ O) S, s2 M
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>): R- }3 p( q+ P# P" T! n
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
4 G% i9 B; t/ D5 f4 G% Q; c at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)3 P8 L8 m: E x, I) G+ L! A
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
2 U! Y4 n6 X- l0 Y# u D at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)) v1 O s4 \" D! k7 `0 d7 o
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
0 j3 @8 ]6 Y; z& g4 Q' l at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)5 _% ~; ?; K! @/ H4 X1 z( `
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
0 O1 d9 x; A/ w8 ~ at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53): Z8 ]* @4 _7 ^( N, b, ~
at java.lang.Thread.run(Unknown Source)
5 a# k4 h0 A- m$ XCaused 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]$ M" l& a" Q0 U1 a$ U
Possible solutions: getNeighborhood(boolean)% z" H% [4 ~$ F" l
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
# L7 x! K' l" h: B$ S at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
4 Q- N( R' ]4 p5 t at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
* z9 \6 }) f8 _: i& @ at FlowZombies.Zombie.step(Zombie.groovy:128)3 X0 d/ r6 e- z( W
$ @- B, |& u+ C# i请高手指点迷津呀!痛苦中…… |