|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The base interface of a relation between some atoms, like a row in a database. This interface is used to store and get facts but also to store and get parameters e.g. in a statement
prolog: myFact(joe,dan).
in this example, the relation would contain the atoms "joe" and "dan"
| Method Summary | |
java.util.Map |
buildMap()
builds a indexmap. a indexmap contains the atom as key and the index as integer. this function is only used for parameter matching. |
void |
genXml(java.io.Writer out,
ISymbolTable table)
generates xml describing this relation |
IAtom |
get(int index)
returns the atom at the specified index |
int |
getValueCount()
returns the number of atoms contained in this relation |
java.util.Iterator |
getValues()
returns an iterator over all atoms contained in this relation |
java.lang.String |
toString(int[] parameterNames,
ISymbolTable table)
returns a string representation of this object with decoded symbols in prolog syntax used for query results e.g. |
java.lang.String |
toString(ISymbolTable table)
returns a string representation of this object with decoded symbols |
| Method Detail |
public int getValueCount()
public IAtom get(int index)
index - of the atom to be returnedpublic java.util.Iterator getValues()
public java.util.Map buildMap()
public void genXml(java.io.Writer out,
ISymbolTable table)
throws java.io.IOException
out - the writer where o append the xmltable - the symboltable if the xml should be decodedjava.io.IOException - if writing xml failspublic java.lang.String toString(ISymbolTable table)
table - - the symboltable used to decode
public java.lang.String toString(int[] parameterNames,
ISymbolTable table)
table - - the symboltable used to decodeparameterNames - - the names of the parameters in this relation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||