|
From: SourceForge.net <no...@so...> - 2005-07-05 13:33:51
|
Bugs item #1232750, was opened at 2005-07-05 13:33 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=1232750&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: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nick Collier (srcnick) Assigned to: Nobody/Anonymous (nobody) Summary: BaseController SimEvents Initial Comment: From Charles Gieseler: I wanted to ask something about a problem I found in the BaseController. I noticed that BaseController doesn't fire SimEvents to SimEventListeners when a simulatoin is paused or stopped. I checked the source and it appears that pauseSim() and stopSim() are missing calls to fireSimEvent(). This is used in startSim(), which my listener does pick up correctly. I tried adding a call to fireSimEvent() to both pauseSim() and stopSim() with the corresponding event flags from SimEvent. My listener seem to pick them up as intended with this modification. I also noticed a flag in SimEvent for when the seed for the random generator is set. I assumed this meant setRandomSeed() should also fire a SimEvent. I wasn't sure if I should submit this as a bug report or do something else, so I thought I would check with you first. I have attached BaseController with my changes if you want to take a look. I have marked each change with the comment "//****** ADDED fireSimEvent() HERE". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101703&aid=1232750&group_id=1703 |