org.algernon.aam
Class QueryHistory
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.algernon.aam.QueryHistory
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- public class QueryHistory
- extends HashMap
- See Also:
- Serialized Form
Nested classes inherited from class java.util.HashMap |
|
Nested classes inherited from class java.util.AbstractMap |
|
Fields inherited from class java.util.HashMap |
|
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
DEFAULT_SIZE
protected static int DEFAULT_SIZE
DEFAULT_LIST_SIZE
protected static int DEFAULT_LIST_SIZE
m_processor
protected Processor m_processor
QueryHistory
public QueryHistory(Processor proc)
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
-