流程图方式建模,运行时出现错误。
4 [7 p% y8 ^/ ~0 X7 z1 @表现为:小人儿和僵尸的icon都不动。
$ D8 ^/ N, d& aerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
- @: E4 h2 }7 [1 s
B ]- K$ ]- R4 ^3 F9 fjava.lang.reflect.InvocationTargetException
* H2 o( C& G$ `& J& Q- K4 a1 I3 l: ^ at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)$ r- _/ \1 w" b
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
0 G a6 U/ x( X at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)/ l% C, t" A! D/ U6 y# S& \
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)7 B; X8 I. Z5 ]( \
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)
; U- M+ j2 l8 A, E9 o( q; l3 r at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
" b; i7 H1 G, a at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)$ ?/ s8 b9 O) Y5 @' r
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)% ]8 Q% ~9 a& @/ [
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)
4 N# c C- [8 _* l: f at java.lang.Thread.run(Unknown Source)3 ?, \( W5 E) N" D
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]
) Q* a2 g4 {- U1 n* g1 }! wPossible solutions: getNeighborhood(boolean)
~! S0 l3 s( m3 s at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
3 f. V/ z( T' h9 M# l at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
' ^' e- Z6 M: l/ D C at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)( n0 B% Z+ t7 Y- M" ^
at FlowZombies.Zombie.step(Zombie.groovy:128)6 Y' T! Q2 x l
, F/ F3 y( r4 c& a+ t: c `请高手指点迷津呀!痛苦中…… |