prolog.model
Interface IFact

All Known Subinterfaces:
IFactList, IStatement
All Known Implementing Classes:
Fact

public interface IFact

this is the base interface for a relation with a name.

prolog: myFact(dan,joe).

in this example, "myFact" is the name and the parameters "dan" and "joe" are the atoms in the relation.


Method Summary
 void genXml(java.io.Writer out, ISymbolTable table)
          generates xml describing this object
 int getName()
          returns the name of this fact
 IRelation getRelation()
          returns the relalation this fact owns
 java.lang.String toString(ISymbolTable table)
          returns a string representation of this oject, if the parameter ISymbolTable is specified, the symbols are decoded
 

Method Detail

getRelation

public IRelation getRelation()
returns the relalation this fact owns
Returns:
relation this fact owns

getName

public int getName()
returns the name of this fact
Returns:
the name of this fact

toString

public java.lang.String toString(ISymbolTable table)
returns a string representation of this oject, if the parameter ISymbolTable is specified, the symbols are decoded
Parameters:
table - is the ISymbolTable required to decode the output
Returns:
a string representation of this oject

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 -