Opus5.Application8

Explanation

This application illustrates the use of a priority queue to implement a discrete-event simulation. It uses the Simulation class given in Program 11.22.

The source code for the main method is available here.

Instructions

This is a non-interactive program that creates runs the simulation for 10,000 time units and prints each event as it is executed.


Bruno
Copyright © 1999 by Bruno R. Preiss, P.Eng. All rights reserved.