This document is a very simple simulation experiment. Look at the source code of this document to see how the simulation experiment has been programmed.
There is a text input to enter the experiment duration and a check box to turn on/off the status bar reporting. Simulation is started by pressing the button Run that activates the routine TestSimulation(). It does all the initialization and schedules the Event 1. The Event 1 schedules the Events 2 and 3. The Event 2 schedules the Event 4 and possibly cancels the Event 3. Starts and ends of all events are reported .