流程图方式建模,运行时出现错误。! T+ G: B& P# S$ q" ?
表现为:小人儿和僵尸的icon都不动。
' L+ [. D0 b4 I, s9 qerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
" T2 u r S( N' {
+ B c+ M8 i% e7 ljava.lang.reflect.InvocationTargetException; T& Q2 j+ p/ W% I9 L& M2 s/ g: |
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)4 X' \0 f( c2 \ S
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)4 }: L. B/ \! S& d( h+ X
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69). n0 J/ o" b* o
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253), o( n9 ?, d5 [% ^- W
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)* V* C$ G+ d2 g5 ]; f$ P- e
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)* l4 M6 m* K6 a, ~( B5 P
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)% D; O0 b/ k- t9 ^- I3 C& H
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352). t2 s1 u( B: e- ~
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)! Q, K: F# ]$ u/ [1 C. b
at java.lang.Thread.run(Unknown Source)& }' S" x4 t* K6 C
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]
8 U! f+ W- X# d; cPossible solutions: getNeighborhood(boolean). L4 T5 Z# ], E" w
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) k; h* `( d O* w6 Z
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
4 L( `4 Q' G) j1 d% a1 r8 A at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124), Q# }% ?6 \0 d$ Y0 ^9 I, ~! t$ t3 s
at FlowZombies.Zombie.step(Zombie.groovy:128)- f6 n3 h( Y% I: O o
" i- ?# [* o/ @- a' C! O请高手指点迷津呀!痛苦中…… |