aima.search.nodestore
Class PriorityNodeStore

java.lang.Object
  extended by aima.search.nodestore.PriorityNodeStore
All Implemented Interfaces:
NodeStore

public class PriorityNodeStore
extends java.lang.Object
implements NodeStore


Constructor Summary
PriorityNodeStore(java.util.Comparator<Node> comparator)
           
 
Method Summary
 void add(java.util.List<Node> nodes)
           
 void add(Node anItem)
           
 boolean isEmpty()
           
 Node remove()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PriorityNodeStore

public PriorityNodeStore(java.util.Comparator<Node> comparator)
Method Detail

add

public void add(Node anItem)
Specified by:
add in interface NodeStore

remove

public Node remove()
Specified by:
remove in interface NodeStore

add

public void add(java.util.List<Node> nodes)
Specified by:
add in interface NodeStore

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface NodeStore

size

public int size()
Specified by:
size in interface NodeStore

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object