prefuse.util.collections
Class Queue

java.lang.Object
  extended by prefuse.util.collections.Queue

public class Queue
extends java.lang.Object

Maintains a breadth-first-search queue as well as depth labels.

Author:
jeffrey heer

Constructor Summary
Queue()
           
 
Method Summary
 void add(java.lang.Object o, int depth)
           
 void clear()
           
 int getDepth(java.lang.Object o)
           
 boolean isEmpty()
           
 java.lang.Object removeFirst()
           
 java.lang.Object removeLast()
           
 void visit(java.lang.Object o, int depth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Queue

public Queue()
Method Detail

clear

public void clear()

isEmpty

public boolean isEmpty()

add

public void add(java.lang.Object o,
                int depth)

getDepth

public int getDepth(java.lang.Object o)

visit

public void visit(java.lang.Object o,
                  int depth)

removeFirst

public java.lang.Object removeFirst()

removeLast

public java.lang.Object removeLast()


Copyright © 2007 Regents of the University of California