Class ParallelTriggerRuleApplier<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.ParallelTriggerRuleApplier<RW>
- Type Parameters:
RW- the writable materialized data type handled by the applier
- All Implemented Interfaces:
RuleApplier<RW>
public class ParallelTriggerRuleApplier<RW extends MaterializedData & Writable>
extends AbstractRuleApplier<RW>
The parallel rule application applies the rules by
* Computing the homomorphisms from the body of the rules to the factbase
* Checking if the homomorphism is applicable
* Applying the homomorphism to the head of the rule and
* Adding the resulting atoms to a temporary factbase that will need to be merged into the factbase at the end of the step
-
Field Summary
Fields inherited from class AbstractRuleApplier
applier, checker, computer, LOG, transformer -
Constructor Summary
ConstructorsConstructorDescriptionParallelTriggerRuleApplier(BodyToQueryTransformer transformer, TriggerComputer<RW> computer, TriggerChecker<RW> checker, TriggerApplier<RW> applier) Constructor -
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
-
ParallelTriggerRuleApplier
public ParallelTriggerRuleApplier(BodyToQueryTransformer transformer, TriggerComputer<RW> computer, TriggerChecker<RW> checker, TriggerApplier<RW> applier) Constructor- Parameters:
transformer- the BodyToQueryTransformercomputer- the TriggerComputerchecker- the TriggerCheckerapplier- the TriggerApplier
-
-
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
-