Algernon Software

org.algernon.aam
Class QueryHistory

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended byorg.algernon.aam.QueryHistory
All Implemented Interfaces:
Cloneable, Map, Serializable

public class QueryHistory
extends HashMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
protected static int DEFAULT_LIST_SIZE
           
protected static int DEFAULT_SIZE
           
protected  Processor m_processor
           
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
QueryHistory(Processor proc)
           
 
Method Summary
 void clearQueries(AlgernonFrame frame)
           
 void clearQueries(LispValue frame, LispValue rel)
           
 void clearQuery(Clause clause)
          Clears the query from the history.
 boolean contains(Clause clause)
          Returns true if the QueryHistory contains the query or a generalization of it.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

DEFAULT_SIZE

protected static int DEFAULT_SIZE

DEFAULT_LIST_SIZE

protected static int DEFAULT_LIST_SIZE

m_processor

protected Processor m_processor
Constructor Detail

QueryHistory

public QueryHistory(Processor proc)
Method Detail

contains

public boolean contains(Clause clause)
Returns true if the QueryHistory contains the query or a generalization of it. If the history does not contain it, it adds it. Clause contains symbols representing the frame and relation, not the actual frame and relation.


clearQueries

public void clearQueries(LispValue frame,
                         LispValue rel)

clearQueries

public void clearQueries(AlgernonFrame frame)

clearQuery

public void clearQuery(Clause clause)
Clears the query from the history.

Parameters:
clause -

Algernon Software