流程图方式建模,运行时出现错误。
( F4 J1 L$ g! ~! z; @0 L6 g# J表现为:小人儿和僵尸的icon都不动。; `9 h ^8 d8 Y
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
$ f" r2 k+ m& [
" I$ J4 n+ H6 e& Y$ {4 I9 M! M% Tjava.lang.reflect.InvocationTargetException, Z0 h* N% X6 I6 R; d5 k& h1 @: i
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)" h1 `' M) ~8 T$ V" F
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
9 U) P4 Y2 E( |+ Z6 p4 z- ^ at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
& t& {8 H+ C* r( |! v at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)- n) n' E& ?' w6 x
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
2 V" b9 P1 u: F, T at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)# K" {0 U- L* t$ Z+ Y
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
( J+ ^* v; l, a at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
6 X5 }9 { G" ^1 S at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)% w* e$ e# b8 {! w: W: Y
at java.lang.Thread.run(Unknown Source)
' |- L4 |/ W) N9 Z7 f9 s# A4 MCaused 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]
7 R. `, y* u+ p4 V+ OPossible solutions: getNeighborhood(boolean)
. _& W& j+ K- G" b- [ at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
{2 a3 O1 B. o( Y( F at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
7 F1 Y$ n0 G E; P2 b at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
( Z" N' V4 J9 P3 H' s5 H at FlowZombies.Zombie.step(Zombie.groovy:128)
% P! J. e' E" A! R1 c# d7 r
( f" S, m& ]% V+ C2 P" G) K请高手指点迷津呀!痛苦中…… |