Advance Simulation Clock To Next Event

129 views
Skip to first unread message

Mark

unread,
Feb 2, 2017, 12:22:11 PM2/2/17
to Jaamsim Users Discussion Group
Most simulation packages have the ability to advance the simulation clock by a single tic. Would it be possible to add that to JaamSim as well? In the general case I was thinking of an interface such as:

"Advance [Input Box] Events" {right-arrow button}

Example:
Advance [ 1] Events {->}

Thoughts:
- Part of me thinks that clicking the right-arrow button should perform all events scheduled until the next simulation time on the sim calendar. In that case a better interface would make it explicit that it's the next simulated time and not the next event.
- Another part of me thinks that it would be nice to be able to step through the actual order of events as they are queued on the sim calendar and see them being executed in the views. I know that in general you can't (or at least shouldn't) rely on the order of events scheduled to occur at the same simulated time; but sometimes when model-building you don't realize you ended up with a race-condition on sim time and so stepping through one event at a time might help reveal this unintended race-condition. In this case, I might put a check box that defaults to "next sim time step" and a warning pop-up that says something like "WARNING: You cannot rely on the events that are scheduled to occur at the same simulated time being in any particular order" when it is unchecked by the user.
- We're starting to run out of space at the top of the screen. Maybe this becomes an optional tool bar?

Paul

unread,
Feb 3, 2017, 8:00:11 AM2/3/17
to Jaamsim Users Discussion Group
I'd like to support this request... the ability to step through the event calendar is something I miss when debugging a model. Otherwise I have found JaamSim really good to work with - thanks for sharing!

Harry King

unread,
Feb 3, 2017, 7:13:14 PM2/3/17
to Jaamsim Users Discussion Group
Mark and Paul,

I think what is needed is a tool that shows all the future events in a list with columns for simulation time, event priority, object name, and event description. Separate buttons would be provided to execute the next event and to execute all the events at the next simulation time. Many years ago, we had a tool like this, but it would need to be re-written from scratch now.

Harry

Harry King

unread,
Oct 19, 2017, 1:11:31 PM10/19/17
to Jaamsim Users Discussion Group
Mark and Paul,

The 'Event Viewer' tool added in release 2017-11 provides the ability to advance the simulation one event at a time.

Harry

Paul

unread,
Oct 20, 2017, 4:58:38 AM10/20/17
to Jaamsim Users Discussion Group
Thank you Harry!

This Event Viewer and the Undo & Redo options are fantastic additions in the latest release.

Regards,
Paul

Hans Van Damme

unread,
Oct 20, 2017, 7:47:59 AM10/20/17
to Jaamsim Users Discussion Group
That's a great feature, Harry! Can't wait to try it out -- currently not working on a simulation project.
Reply all
Reply to author
Forward
0 new messages