Class TwoStepsComputer<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_computer.TwoStepsComputer<RW>
- Type Parameters:
RW- the writable materialized data type used during chase execution
- All Implemented Interfaces:
TriggerComputer<RW>
public class TwoStepsComputer<RW extends MaterializedData & Writable>
extends Object
implements TriggerComputer<RW>
Computes only triggers that has not been computed at a previous step
Send an atom on the new facts and extends the homomorphism to the factbase
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using the generic query evaluatorTwoStepsComputer(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
-
TwoStepsComputer
public TwoStepsComputer()Default constructor using the generic query evaluator -
TwoStepsComputer
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
-