Boeing Simulation 3.1 API Specification

util
Interface Queue

All Known Implementing Classes:
FairWeightedQueue, SimpleQueue

public interface Queue

A standard Queue interface.

Version:
Author:
Jim Adamich
, Dave Jurgens , James Brodman

Method Summary
 Object dequeue()
          Removes an object or blocks until one is present and then removes it.
 void enqueue(Object o)
          Puts o at the end of the queue.
 boolean isEmpty()
          Returns whether the queue is currently empty.
 int size()
          Returns the number of items currently in the queue.
 

Method Detail

enqueue

public void enqueue(Object o)
Puts o at the end of the queue.


dequeue

public Object dequeue()
Removes an object or blocks until one is present and then removes it.


isEmpty

public boolean isEmpty()
Returns whether the queue is currently empty.


size

public int size()
Returns the number of items currently in the queue.


Boeing Simulation 3.1 API Specification

To submit a bug or feature email the author of that class. Funding for this research was provided by Boeing and DARPA.