|
From: SourceForge.net <no...@so...> - 2008-03-28 12:42:44
|
Bugs item #1927907, was opened at 2008-03-28 13:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1927907&group_id=1703 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Repast Simphony Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: luniki (luniki) Assigned to: Nobody/Anonymous (nobody) Summary: ScheduledMethod Property "shuffle" throws exception Initial Comment: This simple agent class: ------------------------------------------------------- package test; import repast.simphony.engine.schedule.ScheduledMethod; public class TestAgent { @ScheduledMethod(start = 1, interval = 1) public void step() { } } ------------------------------------------------------- works as expected. But adding parameter "shuffle": ------------------------------------------------------- package test; import repast.simphony.engine.schedule.ScheduledMethod; public class TestAgent { @ScheduledMethod(start = 1, interval = 1, shuffle = false) public void step() { } } ------------------------------------------------------- throws an exception: FATAL [Thread-4] 2008-03-28 13:33:44,923 repast.simphony.ui.GUIScheduleRunner - RunTimeException when running the schedule Current tick (1.0) java.util.NoSuchElementException at java.util.AbstractList$Itr.next(AbstractList.java:350) at repast.simphony.util.collections.DelegatedIterator.next(DelegatedIterator.java:44) at org.apache.commons.collections15.iterators.IteratorChain.next(IteratorChain.java:271) at repast.simphony.engine.controller.ScheduledMethodControllerAction$ScheduleMethodAction.execute(ScheduledMethodControllerAction.java:196) at repast.simphony.engine.schedule.DefaultAction.execute(DefaultAction.java:38) at repast.simphony.engine.schedule.ScheduleGroup.executeList(ScheduleGroup.java:168) at repast.simphony.engine.schedule.ScheduleGroup.execute(ScheduleGroup.java:185) at repast.simphony.engine.schedule.Schedule.execute(Schedule.java:343) at repast.simphony.ui.GUIScheduleRunner$ScheduleLoopRunnable.run(GUIScheduleRunner.java:52) at java.lang.Thread.run(Thread.java:619) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1927907&group_id=1703 |