流程图方式建模,运行时出现错误。2 M0 b, ?( M9 }) e
表现为:小人儿和僵尸的icon都不动。 2 s: r/ [! i, Cerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(): ~* j( l& Y& J- r/ \; U! r* m
7 W! G" z' w9 r! g9 O- y( \ c
java.lang.reflect.InvocationTargetException$ L9 t+ d; G y: B4 j; l2 B
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)& G$ \& ]% o* C' l% J7 N1 {
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) , ?; b' g& s4 _: i9 v. t4 C+ b# e at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)2 y* g" G4 P8 O u# d
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) 9 ^9 @5 ^% |5 d/ T! K% t V; t at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) ( F% A% \9 |9 `/ R$ F at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)$ M; P2 h* K4 D" `
at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)3 u2 [8 r9 j- d# q* P' L& \: X# s
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)8 Q4 V% I! F4 a2 S! S
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) 4 ]9 e' H$ t- r H at java.lang.Thread.run(Unknown Source)5 \% c- U. R4 p, E. N5 k* G1 Y+ w
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]" @9 a3 P! ]& I) \) m) F
Possible solutions: getNeighborhood(boolean) 3 r$ T J% c. c: t7 p: @" t at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54) " x- f5 T2 C) B( r% y2 u at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) 7 Z5 y- a( n+ v* O# L at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)$ @( [; p6 h' E. f* W) B- H+ s$ x
at FlowZombies.Zombie.step(Zombie.groovy:128)" `( Y I$ _! k) u