流程图方式建模,运行时出现错误。
1 Y& c* j, E P% E- y) \) f表现为:小人儿和僵尸的icon都不动。4 ?0 L- M: L4 r7 `! h2 Q- R
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
! c: N' E; R, N& k( [
# `; l; A6 C1 B9 K! kjava.lang.reflect.InvocationTargetException" }: a5 t$ }$ K: z
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
; z7 Q: B7 ?4 l/ d9 m& N: G" n3 Y at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
7 \/ Y5 s. @: Q; s; E8 m: c+ V at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)$ Q7 U/ i# j) A8 w( k0 e
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
# H: `0 e% q, @( s: `* E9 ? at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
* Q- s, d+ ^& q& ]% _ at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
; {+ T$ B- d$ h at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)1 m: B2 I2 I$ q! Y/ s
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)1 v' ^: Z# m) M
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
0 I/ v& C3 E0 v" y5 m' j) { h" ^ at java.lang.Thread.run(Unknown Source)' K2 o8 T7 X8 p2 w- E/ q
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]
1 w" `, Y# y4 x5 i H6 SPossible solutions: getNeighborhood(boolean)
+ k( s- J+ y3 j" E at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)& ^ R7 e7 O- ]9 `; K
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
1 ?/ Z+ g4 Z/ I9 Y at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
# J$ T, Q- b1 i7 s1 |! N1 g at FlowZombies.Zombie.step(Zombie.groovy:128)
6 J( x% C( a' q( h5 [$ o0 T0 Y0 q: `
' b! h1 P0 j7 D2 ]+ n请高手指点迷津呀!痛苦中…… |