流程图方式建模,运行时出现错误。
) d% K- q6 j" W( H- }表现为:小人儿和僵尸的icon都不动。2 s( K1 M" E9 h$ z) c+ b
error log中注明Erorr:Tried to call: public java.lang.Object FlowZombies.Zombie.step()
7 d* @" K4 I( J7 L' S' i2 F! k
8 D0 f. T# g3 k9 q, Ajava.lang.reflect.InvocationTargetException
6 [* S8 e/ f+ V+ a1 M6 U2 S2 Z) h at FlowZombies.Zombie$$FastClassByCGLIB$$f04c0135.invoke(<generated>)3 o& q3 Q+ E4 J1 V5 n# F0 t
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53): O8 j& |9 i, A$ u
at repast.simphony.engine.schedule.DynamicTargetAction.execute(DynamicTargetAction.java:69)( |6 Y* _; i; o7 B T: P; D# s
at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:253)
: K5 a. W8 Q$ s+ i/ I& m& @' C at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38)) j: G2 }3 h/ @/ A% @ b
at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:184)
. J9 s: @6 l: C& @+ X9 n6 v; `3 _/ T at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:201)
+ ~9 c' {( G4 I2 C- ~ at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:352)- P- m" M0 a# F0 x* z, f; t
at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:53)3 n' }' h" k+ v$ t g3 W
at java.lang.Thread.run(Unknown Source)0 e, b, D! ^. X! O
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]
- x* P" Q/ z7 x5 {# l6 D+ iPossible solutions: getNeighborhood(boolean)
; L' i9 P# b1 b' P! A at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)& T( X8 r/ u7 _! b
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)7 ?, q; ^( x y% c0 e% R
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
$ i D" M' S% f" P% ? at FlowZombies.Zombie.step(Zombie.groovy:128)
7 \: q* u. |* u8 X5 U( t' G
% ^0 } f" K# k/ K9 f. k请高手指点迷津呀!痛苦中…… |