|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdrew.oo.bu.ForwardReasoner
This class implements the forward reasoner (bottom-up) modules of OO jDREW; The unifier for this module is implemented by the jdrew.oo.bu.Unifier class and a subsumption checking system is implemented by the jdrew.oo.bu.Subsumption Class. A forward reasoner works by processing "new" facts; As each new fact is processed unificiation with all previously exisiting rules is attempted; if the unification is successful one of two things happens: if the resolvent is a fact then it is added to the end of the new facts list; if the resolvent is a rule then it is processed (attempting unification with all processed facts) and is then added to the list of rules.
Title: OO jDREW
Description: Reasoning Engine for the Semantic Web - Supporting OO RuleML 0.88
Copyright: Copyright (c) 2005
| Constructor Summary | |
ForwardReasoner()
This method constructs a new ForwardReasoner object (implementation of a bottom-up reasoning engine); creating the required buffers for knowledge base storage (oldFacts and rules Hashtable's and newFacts Vector) and registers the system provided built-in relations with the engine by calling the registerBuiltins(); |
|
| Method Summary | |
java.util.Vector |
getNewFacts()
Allows user code to access the newFacts vector. |
java.util.Hashtable |
getOldFacts()
Allows user code to access the oldFacts hash table. |
java.util.Hashtable |
getRules()
Allows user code to access the rules hash table. |
void |
loadClauses(java.util.Iterator it)
This method is used to load clauses into the reasoning engine. |
void |
printClauses()
This method will print the entire knowledge base that has been loaded into this reasoning engine to standard out. |
void |
registerBuiltin(BUBuiltin b)
This method is used to register a new user created built-in with the reasoning engine. |
void |
registerBuiltin(Builtin b)
This method is used to register a new user created built-in with the reasoning engine. |
void |
runForwardReasoner()
This method runs the main forward reasoner; causing the engine to find all possible conclusions from the knowledge base that was loaded into the engine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ForwardReasoner()
| Method Detail |
public java.util.Vector getNewFacts()
public java.util.Hashtable getOldFacts()
public java.util.Hashtable getRules()
public void registerBuiltin(Builtin b)
b - Builtin An instance of the class that implements the built-in
relation; this should implement the jdrew.oo.builtins.Builtin interface.public void registerBuiltin(BUBuiltin b)
b - BUBuiltin An instance of the class that implements the built-in
relation; this should be a sub-class of the
jdrew.oo.bu.builtins.BUBuiltin class.public void printClauses()
public void loadClauses(java.util.Iterator it)
it - Iterator An iterator containing the new clauses to be loaded;
this should only iterate over DefiniteClause objects. These iterators
can be created by calling the iterator() method of parsers - such as
RuleMLParser or POSLParser.public void runForwardReasoner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||