Class FRuleEngineIFactory
- java.lang.Object
-
- org.apache.jena.reasoner.rulesys.impl.FRuleEngineIFactory
-
public class FRuleEngineIFactory extends java.lang.Object
Factory class for creatingFRuleEngineI
. 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 Constructor Description FRuleEngineIFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FRuleEngineI
createFRuleEngineI(ForwardRuleInfGraphI parent, java.util.List<Rule> rules, boolean useRETE)
Creates aForwardRuleInfGraphI
instance.static FRuleEngineIFactory
getInstance()
Return the single global instance of this factorystatic void
setInstance(FRuleEngineIFactory instance)
Replaces the custom global instance.
-
-
-
Method Detail
-
getInstance
public static FRuleEngineIFactory getInstance()
Return the single global instance of this factory
-
setInstance
public static void setInstance(FRuleEngineIFactory instance)
Replaces the custom global instance.- Parameters:
instance
- the new factory instance
-
createFRuleEngineI
public FRuleEngineI createFRuleEngineI(ForwardRuleInfGraphI parent, java.util.List<Rule> rules, boolean useRETE)
Creates aForwardRuleInfGraphI
instance.- 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
- iftrue
force this factory to create aRETEEngine
otherwise aFRuleEngine
is created.- Returns:
- the created engine.
-
-