流程图方式建模,运行时出现错误。
{+ c7 R4 \( m7 n* n( v表现为:小人儿和僵尸的icon都不动。
" A) P7 w8 G$ b" r/ O7 Y/ D! @5 jerror log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()$ Z5 }/ C. a B3 U; S/ }
% a" W& L3 p* ~java.lang.reflect.InvocationTargetException2 f! }0 Z( d+ o6 P# q# p; P; h- ~
at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)) a7 K/ s" X* `! r
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
" Q! u; I* O+ M7 c/ E at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)
b* v+ t d5 ~# C at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)3 ?! ^ F% ?( ]8 ?5 [3 X
at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38): B' u2 n/ l$ M Q
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
. c$ @3 N# x, S/ U at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)& d; s$ [) }2 v6 b5 |8 I/ J
at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)
" P9 M$ k( y9 f; y at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)4 S! a8 j3 n3 y" r0 ], D* F- S
at java.lang.Thread.run(Unknown Source)
, }4 f# O0 m% N8 P4 q: kCaused 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]
# Y( c( n& z p9 LPossible solutions: getNeighborhood(boolean)6 }9 Z! T, z7 h$ R
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
1 i/ t4 S% q/ ~4 J6 F at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
1 Z. g7 N7 a1 E W& a at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
) L& {* I- T+ z' B at FlowZombies.Zombie.step(Zombie.groovy:128)
! }; E- i5 A4 a& Q, |. Z
1 x# V4 g8 O0 ^" ?请高手指点迷津呀!痛苦中…… |