流程图方式建模,运行时出现错误。
" c: s. g) Y9 e/ ?& F表现为:小人儿和僵尸的icon都不动。0 w* A6 z: Y# J- y: ~9 t! U
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
- p. B2 r7 G5 _& o0 |3 U" u; b2 i, u
) ?/ B& R4 r, r; U7 ?" }/ P# gjava.lang.reflect.InvocationTargetException
0 N( @! Z) N' z' L7 e l at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
2 i, d* m( G; b4 _ at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)3 K9 e& U, ^/ w% c" U9 I% q1 {
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)/ W9 q% Q* l V
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)& v( d: o l8 \1 d) L) g
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
7 U4 ^' `7 o6 I! b3 m5 G" z at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
- F8 K& A; u( E at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
% Q3 r* w, @2 n5 a at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)$ @: X( U; y4 A! ?, o
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)2 w- j( K; G9 [
at java.lang.Thread.run(Unknown Source)
% `! h! p7 d% P. D7 {5 u% QCaused 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]
3 T4 P% C; a/ DPossible solutions: getNeighborhood(boolean)& @: e2 ~5 O0 t7 G- \
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)* M* L2 i- N" \# _3 r5 U
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46). u, V9 m, l, S* [
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
% D) d; s! v8 Q* q" O at FlowZombies.Zombie.step(Zombie.groovy:128)
m! T2 e. _7 k 0 r* B* b" m& B5 l
请高手指点迷津呀!痛苦中…… |