Class TriggerApplierImpl<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_applier.TriggerApplierImpl<RW>
- Type Parameters:
RW- the writable materialized data type handled by the trigger applier
- All Implemented Interfaces:
TriggerApplier<RW>
- Direct Known Subclasses:
TriggerApplierWithTrackerImpl
public class TriggerApplierImpl<RW extends MaterializedData & Writable>
extends Object
implements TriggerApplier<RW>
Applies the given triggers by * renaming the existentials * and creating the
image of the rule's head with the renamed homomorphism * then add the images
to the facts
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FactsHandler<RW> Handler used to add the produced facts.protected final TriggerRenamerRenamer used to produce fresh existential witnesses. -
Constructor Summary
ConstructorsConstructorDescriptionTriggerApplierImpl(TriggerRenamer tr, FactsHandler<RW> fh) Creates a trigger applier with the supplied renamer and facts handler. -
Method Summary
Modifier and TypeMethodDescriptionapply(FORule rule, Substitution substitution, RW readWriteData) Applies the given substitution to the rule's head and add the result to the readWriteDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TriggerApplier
describe
-
Field Details
-
tr
Renamer used to produce fresh existential witnesses. -
fh
Handler used to add the produced facts.
-
-
Constructor Details
-
TriggerApplierImpl
Creates a trigger applier with the supplied renamer and facts handler.- Parameters:
tr- the TriggerRenamerfh- the FactsHandler
-
-
Method Details
-
apply
Description copied from interface:TriggerApplierApplies the given substitution to the rule's head and add the result to the readWriteData- Specified by:
applyin interfaceTriggerApplier<RW extends MaterializedData & Writable>- Parameters:
rule- the rule to applysubstitution- the trigger of the rulereadWriteData- Writable where to add the new facts- Returns:
- the effectively added facts
-