|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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
| Method Summary | |
void |
addQuery(IFact f)
adds a query to the list |
void |
clear()
clears the query list |
void |
genXml(java.io.Writer out,
ISymbolTable table)
generates xml describing this object |
java.util.Iterator |
getQueries()
returns a iterator over all queries |
java.lang.String |
toString(ISymbolTable table)
returns a string representation of this query list with decoded symbols |
| Method Detail |
public void clear()
public void addQuery(IFact f)
public java.util.Iterator getQueries()
public java.lang.String toString(ISymbolTable table)
public void genXml(java.io.Writer out,
ISymbolTable table)
throws java.io.IOException
out - the writer to append the xmltable - the symboltable to decode the symbolsjava.io.IOException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||