Class SourceDelegatedDatalogRuleApplier<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.SourceDelegatedDatalogRuleApplier<RW>
- Type Parameters:
RW- the writable materialized data type handled by the applier
- All Implemented Interfaces:
RuleApplier<RW>
public class SourceDelegatedDatalogRuleApplier<RW extends MaterializedData & Writable>
extends Object
implements RuleApplier<RW>
The source delegated rule application applies the rules by
* Delegating the application to the factbase if it can handle it
* Using a fallback method is it can't
-
Constructor Summary
ConstructorsConstructorDescriptionDEfault constructor with a oblivious/naive chase as fallbackSourceDelegatedDatalogRuleApplier(RuleApplier<RW> fallback) Constructor with that applied the given chase as fallback -
Method Summary
Modifier and TypeMethodDescriptionapply(Collection<FORule> rules, ChasableData<RW> chasableData) Applies the given rules on the given data and returns the result (seeRuleApplicationStepResult)describe()Returns a textual description of the rule applier.Returns a JSON description of the rule applier.voidInitialize the rule applier for the given chase
-
Constructor Details
-
SourceDelegatedDatalogRuleApplier
public SourceDelegatedDatalogRuleApplier()DEfault constructor with a oblivious/naive chase as fallback -
SourceDelegatedDatalogRuleApplier
Constructor with that applied the given chase as fallback- Parameters:
fallback- fallback application
-
-
Method Details
-
init
Description copied from interface:RuleApplierInitialize the rule applier for the given chase- Specified by:
initin interfaceRuleApplier<RW extends MaterializedData & Writable>- Parameters:
c- the chase object
-
apply
Description copied from interface:RuleApplierApplies the given rules on the given data and returns the result (seeRuleApplicationStepResult)- Specified by:
applyin interfaceRuleApplier<RW extends MaterializedData & Writable>- Parameters:
rules- the rules to applychasableData- the data to apply the rules on- Returns:
- the result of one application step
-
describe
Description copied from interface:RuleApplierReturns a textual description of the rule applier.- Specified by:
describein interfaceRuleApplier<RW extends MaterializedData & Writable>- Returns:
- a description of the rule applier
-
describeJSON
Description copied from interface:RuleApplierReturns a JSON description of the rule applier.- Specified by:
describeJSONin interfaceRuleApplier<RW extends MaterializedData & Writable>- Returns:
- a JSON description of the rule applier
-