Interface TriggerComputer<RW extends MaterializedData & Writable>
- Type Parameters:
RW- the writable materialized data type handled by the trigger computer
- All Known Implementing Classes:
NaiveTriggerComputer, RestrictedTriggerComputer, SemiNaiveComputer, TwoStepsComputer
public interface TriggerComputer<RW extends MaterializedData & Writable>
Computes the triggers from a rule's body on a factbase
-
Method Summary
Modifier and TypeMethodDescriptioncompute(FOQuery<?> sharedBody, Collection<FORule> rules, ChasableData<RW> chasableData) Computes and returns the triggers of the sharedBody on the factbasedefault Stringdescribe()Returns a textual description of the trigger computer.voidInitialize the trigger computer for the given chase
-
Method Details
-
init
-
compute
Stream<Substitution> compute(FOQuery<?> sharedBody, Collection<FORule> rules, ChasableData<RW> chasableData) Computes and returns the triggers of the sharedBody on the factbase- Parameters:
sharedBody- 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
-
describe
Returns a textual description of the trigger computer.- Returns:
- a textual description of the trigger computer
-