Class ReteEngine
java.lang.Object
org.episteme.natural.computing.ai.expert.rete.ReteEngine
- All Implemented Interfaces:
InferenceEngine
High-performance Rete engine implementation for expert systems.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a fact (data object) to the working memory.voidAdds a rule to the knowledge base.voidclears the working memory.voidTriggers the inference cycle.getFacts()Retrieves all facts currently in the working memory.voidremoveFact(Object fact) Removes a fact from the working memory.
-
Constructor Details
-
ReteEngine
public ReteEngine()
-
-
Method Details
-
addRule
Description copied from interface:InferenceEngineAdds a rule to the knowledge base.- Specified by:
addRulein interfaceInferenceEngine- Parameters:
rule- the rule to be added.
-
addFact
Description copied from interface:InferenceEngineAdds a fact (data object) to the working memory.- Specified by:
addFactin interfaceInferenceEngine- Parameters:
fact- the object to be reasoned about.
-
removeFact
Description copied from interface:InferenceEngineRemoves a fact from the working memory.- Specified by:
removeFactin interfaceInferenceEngine- Parameters:
fact- the object to remove.
-
fireRules
public void fireRules()Description copied from interface:InferenceEngineTriggers the inference cycle. Automatically matches rules against facts and executes them.- Specified by:
fireRulesin interfaceInferenceEngine
-
getFacts
Description copied from interface:InferenceEngineRetrieves all facts currently in the working memory.- Specified by:
getFactsin interfaceInferenceEngine- Returns:
- a collection of facts.
-
clearFacts
public void clearFacts()Description copied from interface:InferenceEngineclears the working memory.- Specified by:
clearFactsin interfaceInferenceEngine
-
getBetaNodes
-