|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--prolog.implementation.QueryList
A query list stores statementtrees having a Query as root
prolog:
?-myQuery1(X,Y):-superman1(Y,X),superwomen1(X,Y).
?-myQuery2(X,Y):-superman2(Y,X),superwomen2(X,Y).
In this example, the two queries "myQuery1" and "myQuery2" are stored in a querylist
| Field Summary | |
protected java.util.List |
listeners
list of IQueryListListeners |
protected java.util.List |
queries
the list storing the queries |
| Constructor Summary | |
QueryList()
constructor |
|
| Method Summary | |
void |
addListener(IQueryListListener l)
registers a listener |
void |
addQuery(IFact f)
adds the given query to the fact list |
void |
clear()
clears this query list |
protected void |
fireChange()
fires a content changed notify |
void |
genXml(java.io.Writer out,
ISymbolTable table)
generates xml describing this object |
java.util.Iterator |
getQueries()
returns a iterator over all stored queries |
void |
removeListener(IQueryListListener l)
unregisters a listener |
java.lang.String |
toString(ISymbolTable table)
returns a string representation of this class |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected java.util.List listeners
protected java.util.List queries
| Constructor Detail |
public QueryList()
| Method Detail |
public void clear()
clear in interface IQueryListpublic java.util.Iterator getQueries()
getQueries in interface IQueryListpublic void addQuery(IFact f)
addQuery in interface IQueryListpublic java.lang.String toString(ISymbolTable table)
toString in interface IQueryList
public void genXml(java.io.Writer out,
ISymbolTable table)
throws java.io.IOException
genXml in interface IQueryListout - the writer to append the xmltable - the symboltable to decode the symbolsjava.io.IOException - public void addListener(IQueryListListener l)
public void removeListener(IQueryListListener l)
protected void fireChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||