流程图方式建模,运行时出现错误。7 M8 J2 R# n6 |9 c
表现为:小人儿和僵尸的icon都不动。
4 o: e- `. j* verror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
, j% r6 R% ~. z5 q0 E+ P! c
# c! k9 \9 R9 m1 t8 f; G, vjava.lang.reflect.InvocationTargetException
4 d2 N. O7 l' l) S at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
6 }6 T. G4 Q. w, q* S. N* U; | at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)4 g7 V! ?# M8 ]& a" A% m
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
6 c4 s( e' d+ E; l. ^4 [; G2 _ at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
( R6 |5 D3 v4 h4 d5 S at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
}' l5 [' r% }+ E at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
$ Q0 t5 r# x; v/ @' G at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)- {/ Q8 K1 Y3 e3 C' s+ h) R
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
9 N1 A0 R) J6 } \& ^; [7 o at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
0 y, p6 l! \: e. z* u at java.lang.Thread.run(Unknown Source)
3 X2 A7 }$ g2 |; \ U j5 N: uCaused 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]/ z; j* X. p7 ]0 i$ {. I0 g
Possible solutions: getNeighborhood(boolean)
% S6 N( f6 }! F2 l. H( t) n, Z at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)& a, t4 E. q9 u; ?
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
8 h; B6 w5 b6 }4 ], N; } at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
7 o5 _8 f% o5 ~/ N0 H at FlowZombies.Zombie.step(Zombie.groovy:128)
) [0 {3 m+ K, p& L$ b a* G9 r6 d
" e9 D9 B& a1 b: s9 R8 a请高手指点迷津呀!痛苦中…… |