|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The RuleBase
defines the interface for the different rule
bases (BooleanRuleBase and FuzzyRuleBase).
Method Summary | |
void |
backwardChain(java.lang.String goalVarName)
Uses backward chaining to fire rules and find a value for the given goal variable. |
void |
displayRules(javax.swing.JTextArea textArea)
Displays all rules in the given text area. |
void |
displayVariables(javax.swing.JTextArea textArea)
Displays all variables in the given text area. |
void |
forwardChain()
Uses forward chaining to set variables and fire rules. |
java.util.Vector |
getGoalVariables()
Returns a vector of all variables referenced in the consequents of rules in the rule base. |
void |
reset()
Resets the rule base for another round of inferencing by setting all variable values to null. |
void |
setDisplay(javax.swing.JTextArea txtArea)
Sets the text area for display. |
void |
trace(java.lang.String text)
Displays a trace message. |
Method Detail |
public void setDisplay(javax.swing.JTextArea txtArea)
txtArea
- the JTextArea object used to display messagespublic void trace(java.lang.String text)
text
- the String object that contains the trace textpublic void displayVariables(javax.swing.JTextArea textArea)
textArea
- the JTextArea object used for displaypublic void displayRules(javax.swing.JTextArea textArea)
textArea
- the JTextArea object used for displaypublic void reset()
public void backwardChain(java.lang.String goalVarName)
goalVarName
- the String object that contains the goalpublic void forwardChain()
public java.util.Vector getGoalVariables()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |