流程图方式建模,运行时出现错误。
) ]; ^, X, ?- r表现为:小人儿和僵尸的icon都不动。
) A8 S, ?( O2 A2 \7 Q* }error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()1 w9 }- [# _+ p2 h! S" ^. p" @4 I
* @3 J* t. w% ~3 `: g6 r7 S7 s# {
java.lang.reflect.InvocationTargetException# g# Q- l+ _5 m" t9 n+ K V
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 |9 A2 H; w/ S+ p8 B& b
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)8 j" m2 t' V0 V
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
5 L2 y; Q3 M, V g" h at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
2 j! Y- A2 p7 P# k7 @0 x" W at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
9 o: o$ \, P6 |, b4 Z6 `2 ? at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)5 o- M+ U4 X& g4 c) a
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
. T- U* h, _& B. ?0 G1 R* c' w at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
% `8 }# H5 K! ^* u) } at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
- T8 v* I |0 w; q7 }) Q at java.lang.Thread.run(Unknown Source)( H) S6 c e7 [! {/ S- b) _5 \* X
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]
' Z2 K3 H. u5 j& S t1 ?) i7 ?# z0 wPossible solutions: getNeighborhood(boolean)
$ b1 i; ], w: d) k+ g0 q7 H* [ ~3 o at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)( e' p; q, D& G* u( |, P' F
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
7 u: c8 Y6 q( K1 I! y5 I0 H0 r8 O6 ? at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124): {0 T: g: }5 ]0 d, P2 b2 ^
at FlowZombies.Zombie.step(Zombie.groovy:128)- x. n) y3 ~, I* J) z8 \% Y: B
$ T' i) y f4 y( t9 I& R" }, l
请高手指点迷津呀!痛苦中…… |