DeferredQueue (cloudsim 3.1-SNAPSHOT API)

org.cloudbus.cloudsim.core

## Class DeferredQueue

- java.lang.Object
- - org.cloudbus.cloudsim.core.DeferredQueue

-     public class DeferredQueue
      extends Object

  This class implements the deferred event queue used by `Simulation`. The event queue uses a linked list to store the events.
  Since:
    CloudSim Toolkit 1.0
  Author:
    Marcos Dias de Assuncao
  See Also:
    `Simulation`, `SimEvent`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DeferredQueue()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addEvent(SimEvent newEvent)` Adds a new event to the queue.
    `void` | `clear()` Clears the queue.
    `Iterator<SimEvent>` | `iterator()` Returns an iterator to the events in the queue.
    `int` | `size()` Returns the size of this event queue.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DeferredQueue

          public DeferredQueue()

  - ### Method Detail

    - #### addEvent

          public void addEvent(SimEvent newEvent)

      Adds a new event to the queue. Adding a new event to the queue preserves the temporal order of the events.
      Parameters:
        `newEvent` - The event to be added to the queue.

    - #### iterator

          public Iterator<SimEvent> iterator()

      Returns an iterator to the events in the queue.
      Returns:
        the iterator

    - #### size

          public int size()

      Returns the size of this event queue.
      Returns:
        the number of events in the queue.

    - #### clear

          public void clear()

      Clears the queue.

Copyright © 2013 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.