流程图方式建模,运行时出现错误。+ Z* G4 @# {9 Q, |5 b8 I" U
表现为:小人儿和僵尸的icon都不动。 8 h5 ~2 c: g7 }2 [% qerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step(); G. c; q/ Y. ?- o1 Y2 W2 @
9 v( X }# ^# J1 n( h Q0 Y2 s& p
java.lang.reflect.InvocationTargetException 1 @0 t8 G+ f$ v7 v0 Z at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)6 Z" c6 F0 Z J
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) 7 W1 L0 X! |" L9 w- V w; W at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69) 3 G. u8 C* _! L q- k5 y at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253) ' d+ u. N; Y/ f3 i at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38). e2 w& t# U1 v# \6 k5 }
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184) ; U& t9 A9 e3 P5 V1 ?! X3 X5 ^ at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)2 A0 |+ i" g' B
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)$ E7 ?8 C+ S7 F
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53) + I! w# o' `3 u |6 ~9 Z/ K* ~( T* f at java.lang.Thread.run(Unknown Source) 5 E0 y" d7 C/ K% G1 n( YCaused 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]3 E1 f& N" K' B
Possible solutions: getNeighborhood(boolean) ! v( d8 M' N* a7 U at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)) p" @# X( ]+ q& s. ~1 {
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)' } z2 P) t/ l+ S: D
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) - o: G* l8 x- o at FlowZombies.Zombie.step(Zombie.groovy:128) / m0 v& v; n) S+ o5 I% o) h & c+ a2 n, Z* Q请高手指点迷津呀!痛苦中……