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

Author:
Ravi Mohan

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

Constructor Detail

PriorityNodeStore

public PriorityNodeStore(java.util.Comparator 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 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