Class MultiTriggerChecker<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.trigger_checker.MultiTriggerChecker<RW>
- Type Parameters:
RW- the writable materialized data type handled by the checker
- All Implemented Interfaces:
TriggerChecker<RW>
public class MultiTriggerChecker<RW extends MaterializedData & Writable>
extends Object
implements TriggerChecker<RW>
Combines multiple checkers and checks that all of them accept the given trigger
-
Constructor Summary
ConstructorsConstructorDescriptionMultiTriggerChecker(TriggerChecker<RW>... checkers) Creates a checker that delegates to the supplied checkers.MultiTriggerChecker(Collection<TriggerChecker<RW>> checkers) Creates a checker that delegates to the supplied checker collection. -
Method Summary
-
Constructor Details
-
MultiTriggerChecker
Creates a checker that delegates to the supplied checkers.- Parameters:
checkers- all the criteria to check
-
MultiTriggerChecker
Creates a checker that delegates to the supplied checker collection.- Parameters:
checkers- all the criteria to check
-
-
Method Details
-
check
Description copied from interface:TriggerCheckerChecks whether the supplied trigger satisfies this criterion.- Specified by:
checkin interfaceTriggerChecker<RW extends MaterializedData & Writable>- Parameters:
rule- the rule that is triggeredsubstitution- the triggerreadWriteData- Writable where to add the new facts- Returns:
- true iff the trigger respects the criteria
-
describe
Description copied from interface:TriggerCheckerReturns a textual description of the trigger checker.- Specified by:
describein interfaceTriggerChecker<RW extends MaterializedData & Writable>- Returns:
- a textual description of the trigger checker
-