Class SemiNaiveComputer<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_computer.SemiNaiveComputer<RW>
- Type Parameters:
RW- the writable materialized data type used during chase execution
- All Implemented Interfaces:
TriggerComputer<RW>
public class SemiNaiveComputer<RW extends MaterializedData & Writable>
extends Object
implements TriggerComputer<RW>
Computes only triggers that has not been computed at a previous step
See ... part 13.1 for more explanations
See ... part 13.1 for more explanations
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using the generic query evaluatorSemiNaiveComputer(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
-
SemiNaiveComputer
public SemiNaiveComputer()Default constructor using the generic query evaluator -
SemiNaiveComputer
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
-