流程图方式建模,运行时出现错误。
* v& b/ L2 [) S! k. r/ i2 ]/ [ g表现为:小人儿和僵尸的icon都不动。
( y/ Q) I" H7 G! Y( Serror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()( j% y5 s; v3 g9 S. V
0 ]. Y+ B/ l0 g( Q3 @; N) s P
java.lang.reflect.InvocationTargetException
8 j: m# t& u' a) ^, d at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
, O, X9 A0 l4 I& |3 ^ at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)" o" `) q2 Y( z6 A/ P$ Y* y4 s
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
( {3 |! n; I. Z" Z. A+ J8 i at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)' f* ^; R) Z, S, P, G3 i
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
) y2 g$ P1 |6 S& o' B6 r2 }, { at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184); w5 g8 Y9 K$ K1 x9 x3 Y+ ^7 C+ X
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
8 Y# F9 i" ?& Z, V: e7 b; c+ T at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
+ _+ y$ t) p! {; m$ f# V$ F at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)+ L1 [- {0 t: t3 z; t6 \
at java.lang.Thread.run(Unknown Source)) Z3 e; x, ^0 ]1 s
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]
( D# n% N* F0 f BPossible solutions: getNeighborhood(boolean)1 @4 u1 d2 u; _
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)1 @/ q0 m- ?5 u9 y% x- \
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
& ?+ N/ b; v& ^' U' p at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)& k: _/ e0 i9 {7 ~4 Q
at FlowZombies.Zombie.step(Zombie.groovy:128)
/ Q) l, G; K; H/ {; [ & x) @8 b. W# E) C
请高手指点迷津呀!痛苦中…… |