流程图方式建模,运行时出现错误。# Z, m" n: @$ t7 Z& C
表现为:小人儿和僵尸的icon都不动。
. o3 R- N- `& }, werror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
, ]) o5 Q/ E6 x
) e3 K7 q+ I2 G' P( J+ pjava.lang.reflect.InvocationTargetException
7 _& J3 M2 |' q5 d$ t2 j1 ` at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
! r N" ~: m; l! M2 C: a4 \ at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
5 U, A6 s/ ]3 [" Q R at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)9 g- O! H% D6 F6 T- F9 K" s
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
: D- g2 s3 Z9 A% F2 S* n/ z/ z at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)* d' |' Y8 U. A% h) R, h, \% o
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
3 A0 u1 T- P& L at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)1 s* t( \" c. k8 \3 M
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)$ l/ k1 M; a4 V$ B
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) w2 y! Y' o+ |
at java.lang.Thread.run(Unknown Source)
& R6 n- L. Q- F7 c% y* M7 K7 `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]
# q2 h _5 D% wPossible solutions: getNeighborhood(boolean)
2 ^: m2 j' ~+ }. A+ `# f. [ at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)2 V# M [- D# b" N
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)! k* s% Y# F3 @8 k0 d
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124), y! Q; r: D2 v c
at FlowZombies.Zombie.step(Zombie.groovy:128)
7 V, t9 f* g! G1 D! G
* l4 _( s$ u* B z) f8 [请高手指点迷津呀!痛苦中…… |