Class ExternalInterruption
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.halting_condition.ExternalInterruption
- All Implemented Interfaces:
HaltingCondition
This halting condition stops the chase if the boolean is set to true
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an interruption condition driven by an external flag. -
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
-
ExternalInterruption
Creates an interruption condition driven by an external flag.- Parameters:
stop- the boolean to observe
-
-
Method Details
-
check
public boolean check()Description copied from interface:HaltingConditionChecks whether the halting condition is currently satisfied.- Specified by:
checkin interfaceHaltingCondition- Returns:
- true iff the condition is respected
-
init
Description copied from interface:HaltingConditionInitialize the halting condition for the given chase- Specified by:
initin interfaceHaltingCondition- Parameters:
c- the Chase object
-