Class eduni.simjava.Evqueue

java.lang.Object
|
+----java.util.Vector
|
+----eduni.simjava.Evqueue

public class Evqueue

extends Vector

This class implements an event queue used internally by the Sim_system to
manage
the list of future and deferred Sim_events. It should not be needed in
a user simulation. It works like a normal FIFO
queue, but during insertion events are kept in order from the smallest time
stamp to the largest. This means the next event to occur will be at the top
of the queue.

The current implementation
is uses a Vector to store the queue and is inefficient for popping
and inserting elements because the rest of the array has to be
moved down one space. A better method would be to use a circular array.