aima.search.nodestore
Class CachedStateNodeStore

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

public class CachedStateNodeStore
extends java.lang.Object
implements NodeStore


Constructor Summary
CachedStateNodeStore(NodeStore aNodeStore)
           
 
Method Summary
 void add(java.util.List<Node> nodes)
           
 void add(Node anItem)
           
 boolean containsNodeBasedOn(java.lang.Object state)
           
 Node getNodeBasedOn(java.lang.Object state)
           
 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

CachedStateNodeStore

public CachedStateNodeStore(NodeStore aNodeStore)
Method Detail

containsNodeBasedOn

public boolean containsNodeBasedOn(java.lang.Object state)

getNodeBasedOn

public Node getNodeBasedOn(java.lang.Object state)

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