java.lang.Object
org.apache.jena.reasoner.rulesys.impl.FRuleEngineIFactory
Factory class for creating
FRuleEngineI. This class is a singleton pattern, the single global
instance could be replaced to provide a custom implementation.
MyFRuleEngineIFactory anotherFactory = new MyFRuleEngineIFactory();
FRuleEngineIFactory.setInstance(anotherFactory);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFRuleEngineI(ForwardRuleInfGraphI parent, List<Rule> rules, boolean useRETE) Creates aForwardRuleInfGraphIinstance.static FRuleEngineIFactoryReturn the single global instance of this factorystatic voidsetInstance(FRuleEngineIFactory instance) Replaces the custom global instance.
-
Constructor Details
-
FRuleEngineIFactory
public FRuleEngineIFactory()
-
-
Method Details
-
getInstance
Return the single global instance of this factory -
setInstance
Replaces the custom global instance.- Parameters:
instance- the new factory instance
-
createFRuleEngineI
public FRuleEngineI createFRuleEngineI(ForwardRuleInfGraphI parent, List<Rule> rules, boolean useRETE) Creates aForwardRuleInfGraphIinstance.- Parameters:
parent- the F or FB infGraph that it using the engine, the parent graph holds the deductions graph and source data.rules- the rule set to be processeduseRETE- iftrueforce this factory to create aRETEEngineotherwise aFRuleEngineis created.- Returns:
- the created engine.
-