Class RestrictedTriggerComputer<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_computer.RestrictedTriggerComputer<RW>
- Type Parameters:
RW- the writable materialized data type used during chase execution
- All Implemented Interfaces:
TriggerComputer<RW>
public class RestrictedTriggerComputer<RW extends MaterializedData & Writable>
extends Object
implements TriggerComputer<RW>
This computing method consist of only evaluating the rules body -> head like the query body ^ not head
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using the generic query evaluatorRestrictedTriggerComputer(FOQueryEvaluator<FOFormula, ? super QueryableData> evaluator) Constructor using the given query evaluator -
Method Summary
Modifier and TypeMethodDescriptioncompute(FOQuery<?> body, Collection<FORule> rules, ChasableData<RW> chasableData) Computes and returns the triggers of the sharedBody on the factbasevoidInitialize the trigger computer for the given chaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TriggerComputer
describe
-
Constructor Details
-
RestrictedTriggerComputer
public RestrictedTriggerComputer()Default constructor using the generic query evaluator -
RestrictedTriggerComputer
Constructor using the given query evaluator- Parameters:
evaluator- the query evaluator to use
-
-
Method Details
-
init
Description copied from interface:TriggerComputerInitialize the trigger computer for the given chase- Specified by:
initin interfaceTriggerComputer<RW extends MaterializedData & Writable>- Parameters:
c- the chase object
-
compute
public Stream<Substitution> compute(FOQuery<?> body, Collection<FORule> rules, ChasableData<RW> chasableData) Description copied from interface:TriggerComputerComputes and returns the triggers of the sharedBody on the factbase- Specified by:
computein interfaceTriggerComputer<RW extends MaterializedData & Writable>- Parameters:
body- the sharedBody of the rule to evaluaterules- the rules sharing the same body querychasableData- the data to apply the rules on- Returns:
- the triggers of the rule on the factbase
-