|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.beans.rules.AbleInferenceEngine
The InferenceEngine provides the control code and inferencing algorithms for processing a RuleSet (consisting of working memory and rules) It manages a set of sensors/effectors which may be
Version Description -------- ----------- 1.0.0 Initial release.
Field Summary | |
protected AbleRuleSet |
rs
rb is the current ruleset. |
java.util.Vector |
ruleList
ruleList is a list of all rules in the rulebase. |
java.util.Hashtable |
variableList
variableList is a list of all variables in the rulebase. |
Constructor Summary | |
AbleInferenceEngine()
Create a new inference engine. |
Method Summary | |
void |
backwardChain(java.lang.String goalVariableName)
Given a goal variable, apply inverse moves and work toward the intial state: For all consequent clauses which refer to this goal variable, try to find a goal variable value via a rule being true. |
void |
forwardChain()
Work forward from an initial state to the goal state. |
AbleRuleSet |
getRuleSet()
Retrieve the current rulebase. |
java.util.Vector |
match(boolean test)
Determine which rules can fire and return a Vector of them to the forward chainer. |
void |
resetRuleSet()
Reset the ruleset for another round of inferencing by setting all variable values to null and clearing the 'fired' flag of all rules. |
AbleRule |
selectRule(java.util.Vector aRuleSet)
Select a rule to fire based on specificity, and return it to the forward chainer. |
void |
setRuleSet(AbleRuleSet aRuleSet)
Set the current rulebase. |
protected void |
trace(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected AbleRuleSet rs
public java.util.Vector ruleList
public java.util.Hashtable variableList
Constructor Detail |
public AbleInferenceEngine()
Method Detail |
public void setRuleSet(AbleRuleSet aRuleSet)
aRuleSet
- A ruleset that replaces the current ruleset, if there is
one.
public AbleRuleSet getRuleSet()
public void resetRuleSet() throws java.rmi.RemoteException
public void backwardChain(java.lang.String goalVariableName)
goalVariableName
- The name of a variable on the variable list.
public void forwardChain()
public java.util.Vector match(boolean test)
test
- Specifies whether each rule's antecedents should be tested
before the rule's truth value is examined.
public AbleRule selectRule(java.util.Vector aRuleSet)
aRuleSet
- A set of rules determined by match().
protected void trace(java.lang.String s)
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |