Class LimitAtoms<RW extends MaterializedData & Writable>
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.halting_condition.LimitAtoms<RW>
- Type Parameters:
RW- the writable materialized data type used by the chase
- All Implemented Interfaces:
HaltingCondition<RW>
public class LimitAtoms<RW extends MaterializedData & Writable>
extends Object
implements HaltingCondition<RW>
This halting condition stops the chase if there is more than a given number of atoms on the writable data.
-
Constructor Summary
ConstructorsConstructorDescriptionLimitAtoms(long max) Creates a halting condition limited by the number of atoms. -
Method Summary
-
Constructor Details
-
LimitAtoms
public LimitAtoms(long max) Creates a halting condition limited by the number of atoms.- Parameters:
max- max number of atoms to create
-
-
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
-
describe
Description copied from interface:HaltingConditionReturns a textual description of the halting condition.- Specified by:
describein interfaceHaltingCondition<RW extends MaterializedData & Writable>- Returns:
- a textual description of the halting condition
-