edu.colorado.cs.ns2.animation
Interface TraceEventQueue

All Known Implementing Classes:
EventQueue

public interface TraceEventQueue

The Queue Interface for Trace Events.

Author:
Kevin Bauer, Pushkar Sambhoos.

Method Summary
 TraceEvent dequeue()
          Removes a trace event from the head of the Queue.
 void enqueue(TraceEvent event)
          Inserts a new trace event at the tail of the Queue.
 TraceEvent getFirst()
          Returns a reference to the head of the Queue.
 TraceEvent getLast()
          Returns a reference to the tail of the Queue.
 boolean isEmpty()
          Returns True if the Queue is empty.
 long size()
          Returns the size of the Queue.
 

Method Detail

dequeue

TraceEvent dequeue()
Removes a trace event from the head of the Queue.


enqueue

void enqueue(TraceEvent event)
Inserts a new trace event at the tail of the Queue.


isEmpty

boolean isEmpty()
Returns True if the Queue is empty.


size

long size()
Returns the size of the Queue.

Returns:
The size of the Queue.

getFirst

TraceEvent getFirst()
Returns a reference to the head of the Queue.


getLast

TraceEvent getLast()
Returns a reference to the tail of the Queue.