prolog.model
Interface IQueryList

All Known Implementing Classes:
QueryList

public interface IQueryList

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

clear

public void clear()
clears the query list

addQuery

public void addQuery(IFact f)
adds a query to the list

getQueries

public java.util.Iterator getQueries()
returns a iterator over all queries

toString

public java.lang.String toString(ISymbolTable table)
returns a string representation of this query list with decoded symbols

genXml

public void genXml(java.io.Writer out,
                   ISymbolTable table)
            throws java.io.IOException
generates xml describing this object
Parameters:
out - the writer to append the xml
table - the symboltable to decode the symbols
Throws:
java.io.IOException -