流程图方式建模,运行时出现错误。+ }% M. I+ m1 x" P) M' \; @6 v) B
表现为:小人儿和僵尸的icon都不动。
7 Z: S- t" ~) X. p, ^error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()' |; B& `- t5 q" q0 A
- R t8 g/ E# i; sjava.lang.reflect.InvocationTargetException) E5 Y! |' ^! u' W! C, g+ Z- Z# J
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)
; f8 X3 p4 s' Y/ _! J# {5 h7 s6 _ at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
0 d* ^. W( m5 s; b8 [/ @% D3 M at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69). d, G4 t6 u. n# z, W. T
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
3 a) T5 J& P( n2 K3 ] `6 \' F at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)/ x4 g- l* P8 F8 D0 Z7 n b! ^: h( H
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)( U1 y4 T2 \4 ^6 B" s) i% a
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)' c# C2 j, c$ W- I
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)3 Q3 `# w! e1 J7 S, e' g
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)& c$ M; J! N7 F& Y* ]1 H
at java.lang.Thread.run(Unknown Source)+ {1 I3 W# X8 ^/ C& I; e
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]; N6 h1 J3 @0 p
Possible solutions: getNeighborhood(boolean)2 t- X! r/ J: z) a9 S& `0 t. J
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)- F; H$ l) W8 U* u# _6 a8 N/ W; O
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
/ R, ?) n; G% X# q at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)7 }. b* L7 \1 A6 x7 f
at FlowZombies.Zombie.step(Zombie.groovy:128)) f ]3 h+ t) e
+ [; O8 ~& v$ |" I# H请高手指点迷津呀!痛苦中…… |