流程图方式建模,运行时出现错误。9 I$ E9 [% e+ n" D
表现为:小人儿和僵尸的icon都不动。
- W G- I$ |3 |+ Uerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()! p9 S8 K, c0 M' [% h! e
& J2 S' I- u. ?. y
java.lang.reflect.InvocationTargetException* S; ~5 H* P9 t4 d! K) j* T3 i7 B! H
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
! E! b2 B4 b1 ^( w) i3 O$ ~' G at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
- N# ~0 M( O6 N B0 Y at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)9 q0 V- B& ^9 |
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)/ g7 G: s! i! c2 A2 z
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)7 ^3 o ?, m" ?& m- W' `; A
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
0 c8 A3 p4 F b1 M- u: I at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)+ q- j2 K8 z& A1 _: z
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
' g7 R, h* |" K' z, K6 u at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
3 E; c! v4 E* ~$ x at java.lang.Thread.run(Unknown Source)# w( J- }6 K+ k/ Y7 P4 h! g
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]! A3 a& D& V$ F: h# z
Possible solutions: getNeighborhood(boolean)" ?0 U! a+ ^( d' B7 ~1 l: d
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)* j" \) q: b7 |" [4 N
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)7 |6 Q# i1 p: d; X4 a; p
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
/ {# a4 i( Y7 x( d3 A* @, m! k at FlowZombies.Zombie.step(Zombie.groovy:128): `' i6 p3 W& H! K
0 [0 \. C. F: Z6 m) v请高手指点迷津呀!痛苦中…… |