Class CreatedFactsAtPreviousStep<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.halting_condition.CreatedFactsAtPreviousStep<RW>
- Type Parameters:
RW- the writable materialized data type used by the chase
- All Implemented Interfaces:
HaltingCondition<RW>
public class CreatedFactsAtPreviousStep<RW extends MaterializedData & Writable>
extends Object
implements HaltingCondition<RW>
This halting condition stops the chase if no facts were created at the last step
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a halting condition based on the facts produced at the previous step. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HaltingCondition
describe
-
Constructor Details
-
CreatedFactsAtPreviousStep
public CreatedFactsAtPreviousStep()Creates a halting condition based on the facts produced at the previous step.
-
-
Method Details
-
check
public boolean check()Description copied from interface:HaltingConditionChecks whether the halting condition is currently satisfied.- Specified by:
checkin interfaceHaltingCondition<RW extends MaterializedData & Writable>- Returns:
- true iff the condition is respected
-
init
Description copied from interface:HaltingConditionInitialize the halting condition for the given chase- Specified by:
initin interfaceHaltingCondition<RW extends MaterializedData & Writable>- Parameters:
c- the Chase object
-