Class SimpleScheduler
java.lang.Object
fr.inria.rules.integraal.query_evaluation.conjunction.backtrack.legacy.SimpleScheduler
- All Implemented Interfaces:
Scheduler
This (static) scheduler gives the next part to evaluate by keeping the parts containing computed atoms and negation at the end.
This make it sure that the current solution contains the elements that are needed to evaluate the given part (iff the initial conjunction is correct)
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleScheduler(FOQuery<? extends FOFormulaConjunction> query) Creates a new scheduler over the given query -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext(int level) Indicates whether another formula remains to evaluate at the supplied level.next(int level, Substitution currentSolution) Returns the next formula to evaluate at the supplied level.
-
Constructor Details
-
SimpleScheduler
Creates a new scheduler over the given query- Parameters:
query- the query to schedule
-
-
Method Details