|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--prolog.implementation.Program
Title: Programm
Descrpition: this class describes a prolog programm
| Field Summary | |
protected IFactDb |
facts
this is the fact database with all facts in it |
protected ILogger |
logger
the logger logs the output of all of the programm e.g. to Console |
protected IQueryList |
querys
in this list, all queries found by the parser are inserted |
protected IStatementMap |
statements
in this map, all statements are added with their name as key |
protected SymbolTable |
symbolTable
this is the symboltable to decode the programm internal used integers to strings |
| Constructor Summary | |
Program()
constructor |
|
| Method Summary | |
void |
clear()
clear the programm (clears all items found by the parser) |
void |
genXml(java.io.Writer out)
generates xml describing the datamodel when in memory, e.g. the statementtrees... |
IFactDb |
getFacts()
returns the fact database used to process a program |
IQueryList |
getQuerys()
returns a list with all queries found by the parser |
IStatementMap |
getStatements()
returns the statement map used to resolve queries |
ISymbolTable |
getSymbolTable()
returns the used symboltable to en- and decode the names |
protected void |
logFinalResult(IRelation format,
java.util.Iterator results)
logs a final result found by a query in prolog syntax |
void |
run()
the method processing the program |
void |
setFacts(IFactDb f)
sets the fact database used to process a program |
void |
setLogger(ILogger logger)
sets the logger used for processing the programm. all output will be routed over this logger |
void |
setStatements(IStatementMap sm)
sets the statement map used to resolve queries |
void |
setSymbolTable(SymbolTable table)
sets the symboltable |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected IQueryList querys
protected IFactDb facts
protected IStatementMap statements
protected SymbolTable symbolTable
protected ILogger logger
| Constructor Detail |
public Program()
| Method Detail |
public void setLogger(ILogger logger)
public void clear()
clear in interface IProgrampublic ISymbolTable getSymbolTable()
getSymbolTable in interface IProgrampublic void setSymbolTable(SymbolTable table)
public IQueryList getQuerys()
getQuerys in interface IProgrampublic void setFacts(IFactDb f)
public IFactDb getFacts()
getFacts in interface IProgrampublic void setStatements(IStatementMap sm)
public IStatementMap getStatements()
getStatements in interface IProgram
public void genXml(java.io.Writer out)
throws java.io.IOException
protected void logFinalResult(IRelation format,
java.util.Iterator results)
format - results -
public void run()
throws ParameterMatchingError
run in interface IProgramParameterMatchingError -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||