Viewing and Controlling Event Queue of Simulation Engine

Using AnyLogic Events view, you can view the event queue of AnyLogic simulation engine to view what is happening at the simulation engine at the lowest level details and to make some changes to the event processing.

Events view

The Events view displays the event queue of AnyLogic simulation engine for the launched model. You can use the events window for debugging purposes to view what is happening at the simulation engine at the lowest level details and to make some changes to the event processing. The user often works with the events window using the Step command.

 To open the Events view
  1. Launch the model.
  2. In the presentation window, click the Customize toolbar   toolbar button and choose Events view from the popup menu.


Events view. Main page

Each event in the Events view is displayed in the following form:

At the event steps of the simulation, there exist current events – those that can be executed at the time now. Among the current events, there is one chosen to be executed next and others are considered as enabled (potentially could be executed next). 

Among the non-current events (those that cannot be executed at the time now) there may be events scheduled at some particular time known in the future, and others that do not know their times (for example, a transition waiting for a message). The latter ones are called predicates. All monitored predicates are shown in the lower pane of the Main page of the Events view.

The occurrence times of the scheduled events may be displayed either as relative to “now” or as absolute values.

To display the occurrence times in relative/absolute values

  1. Right-click (Mac OS: Ctrl+click) the events view and choose Show Absolute Time from the popup menu.

The occurrence time of a scheduled event may be modified.

To change the occurrence time of a scheduled event

  1. Right-click (Mac OS: Ctrl+click) the scheduled event and choose Modify from the popup menu.
  2. The Modify Event Scheduling dialog box opens.
  3. Specify the new relative time of the event occurrence in the Time edit box.
  4. Click OK.
Using the Events view you can also examine statistics collected on events of AnyLogic simulation engine: total number of currently scheduled events and monitored event originators of each type. Statistics on engine events is displayed on the Statistics page of the Events view:


Events view. Statistics page