Class MultiThreadRuleApplier<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.AbstractRuleApplier<RW>
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.MultiThreadRuleApplier<RW>
- Type Parameters:
RW- the writable materialized data type processed by the chase
- All Implemented Interfaces:
RuleApplier<RW>
public class MultiThreadRuleApplier<RW extends MaterializedData & Writable>
extends AbstractRuleApplier<RW>
Multithreaded Rule Applier with a worker for each rule.
- Author:
- Guillaume Pérution-Kihli
-
Field Summary
Fields inherited from class AbstractRuleApplier
applier, checker, computer, LOG, transformer -
Constructor Summary
ConstructorsConstructorDescriptionMultiThreadRuleApplier(BodyToQueryTransformer transformer, TriggerComputer<RW> computer, TriggerChecker<RW> checker, TriggerApplier<RW> applier) Creates a multithreaded rule applier. -
Method Summary
Modifier and TypeMethodDescriptionapply(Collection<FORule> rules, ChasableData<RW> chasableData) Applies the given rules on the given data and returns the result (seeRuleApplicationStepResult)Methods inherited from class AbstractRuleApplier
describe, describeJSON, groupRulesByBodyQuery, init
-
Constructor Details
-
MultiThreadRuleApplier
public MultiThreadRuleApplier(BodyToQueryTransformer transformer, TriggerComputer<RW> computer, TriggerChecker<RW> checker, TriggerApplier<RW> applier) Creates a multithreaded rule applier.- Parameters:
transformer- body-to-query transformercomputer- trigger computerchecker- trigger checkerapplier- trigger applier
-
-
Method Details
-
apply
Description copied from interface:RuleApplierApplies the given rules on the given data and returns the result (seeRuleApplicationStepResult)- Parameters:
rules- the rules to applychasableData- the data to apply the rules on- Returns:
- the result of one application step
-