流程图方式建模,运行时出现错误。
0 j- U4 I2 ^! [2 F4 @& F/ R2 u表现为:小人儿和僵尸的icon都不动。3 y: g% ?0 \, i
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
1 p" Y1 f* Y0 R. \8 i' x8 H) `' _* [5 z% B _0 u
java.lang.reflect.InvocationTargetException
1 O$ _0 K+ r" T' F' Z at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)1 H& j+ E# H: r
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)/ K; q- M6 S+ L- E
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)& K0 S8 g. ] ?8 f
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)+ g( _2 y$ M, }$ p) C( n
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
6 D+ W; `8 h" B: D3 h at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
: `2 _- G) X; y9 Z. Y$ ^: q at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)& l0 X% [ k/ X, X$ K8 c: h* w; H
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352): @3 J/ z3 q1 D+ u7 `" O/ Z! @
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
k- m( G0 u2 f0 o3 @ at java.lang.Thread.run(Unknown Source)
) ~& u" r& i' {. Z, ^7 ZCaused 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]- {, H: y3 S, w0 f
Possible solutions: getNeighborhood(boolean)/ q+ u" y) b2 E1 R$ E
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)( V9 b8 g4 n! g3 X+ {
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
7 w+ D5 _9 r! P4 N5 ? at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
+ ]" n, s& _8 M. {2 {! i" a/ A: R at FlowZombies.Zombie.step(Zombie.groovy:128)0 Q/ K" c: m l8 j! @9 n# N
0 J# _) m, X# j8 E& K/ ~ A+ Z请高手指点迷津呀!痛苦中…… |