|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--pilot.jesscommunicator.JessCommunicator
| Field Summary | |
protected pilot.jesscommunicator.Rete |
engine_
The inference engine of Jess. |
protected JessViewer |
viewer_
The Jess viewer. |
| Constructor Summary | |
JessCommunicator()
This constructor initiates the engine and resets the factbase. |
|
| Method Summary | |
void |
addClassTemplate(java.lang.String className)
The method addClassTemplate adds a template of the given class to the factbase. |
void |
addObjectFact(java.lang.Object obj)
The method addObjectFact adds a shadow fact of the given object to the factbase. |
JessViewer |
getViewer()
The method getViewer returns the Jess viewer. |
void |
loadKnowledge(java.lang.String filename)
The method loadKnowledge loads knowledge, specified as a filename, into the Jess knowledgebase. |
void |
runEngine()
The method runEngine evaluates the rules in the rulebase. |
void |
setRule(java.lang.String rule)
The method setRule adds a Jess rule to the rulebase. |
void |
setViewer(JessViewer viewer)
The method setViewer defines the Jess viewer. |
java.lang.Object[][] |
showFacts()
The method showFacts reads the facts from Jess and returns them. |
java.lang.Object[][] |
showRules()
The method showRules reads the rules from Jess and returns them. |
void |
showTemplates()
The method showTemplates prints all the templates in the Jess engine |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected pilot.jesscommunicator.Rete engine_
protected JessViewer viewer_
| Constructor Detail |
public JessCommunicator()
| Method Detail |
public void loadKnowledge(java.lang.String filename)
filename - name of the rulebase that has to be loaded by the enginepublic void runEngine()
public java.lang.Object[][] showFacts()
public java.lang.Object[][] showRules()
public void addClassTemplate(java.lang.String className)
className - The name of the class the template is based on.public void addObjectFact(java.lang.Object obj)
obj - The Object that has to be added to the factbase.public void showTemplates()
public void setViewer(JessViewer viewer)
viewer - The Jess viewer that is to be set.public JessViewer getViewer()
public void setRule(java.lang.String rule)
rule - The rule to be added.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||