next up previous
Next: World Views Up: General Principles Previous: Concepts and Definitions

Execution Mechanism of Discrete-Event Driven Simulation

With the basic concepts discussed, how is a typical discrete-event driven simulation executed? We will describe this process by using an example: airport simulation (take-off and landing) with one run way.

  1. Possible events: landing-requst, landing, landing-complete, take-off-request, take-off, take-off-complete, idle.
  2. A initial state of the simulation is set.

  3. At this memont, the FEL has two event notices, landing-request at 3 and take-off-request at 5.

  4. Both landing and take-off take 3 minutes to complete.

  5. Take the first event notice off the FEL, process it (a landing-request event). Processing event notice typically involves programming activities tailed towards the applications. For example,

  6. Take the next event notice. This time, another landing-request at time 4. But the runway is busy. So we have to put this event notice into the waiting queue for the runway. (Note that we don't put this event notice back to the FEL in this case.)

  7. Take the next event notice. This is a take-off-request event at time 5. The runway is still busy. Put it into the waiting queue for the runway.

  8. Take the next event notice. This is a landing-complete event at time 6. Processing the event:

  9. This process is repeated until a pre-defined condition is met such as total simulation time is reached, or the total number of landing, take-off is reached.

  10. Every time an event notice is processed, the CLOCK value is set to be the value of the event time. This is called the simulation clock, or simulation time.

  11. The method of generating future event when processing a current event of the same type is called bootstrapping.

  12. The events that appear in FEL are called primary events. Others are called conditional events such as the event lading and take-off, which do not appear in FEL.

  13. Another possible way of generating primary events is alternating a state. For example, the airport might have to be shut down in a random fashion. Otherwise it is in normal operating mode. To simulate this fact, one can schedule an end-of-normal event in some future time. When that time is reached, the airport becomes shut-down. When processing end-of-normal event, an end-of-shut-down event has to be generated in the future.


next up previous
Next: World Views Up: General Principles Previous: Concepts and Definitions
Meng Xiannong 2002-10-18