Class NaiveTriggerComputer<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_computer.NaiveTriggerComputer<RW>
- Type Parameters:
RW- the writable materialized data type used during chase execution
- All Implemented Interfaces:
TriggerComputer<RW>
public class NaiveTriggerComputer<RW extends MaterializedData & Writable>
extends Object
implements TriggerComputer<RW>
This computing method consist of only evaluating the rule's body on the factbase.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using the generic query evaluatorNaiveTriggerComputer(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
-
NaiveTriggerComputer
public NaiveTriggerComputer()Default constructor using the generic query evaluator -
NaiveTriggerComputer
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
-