Class ExecutionSchemas


  • public class ExecutionSchemas
    extends java.lang.Object
    • Method Detail

      • createViatraQueryExecutionSchema

        public static ExecutionSchema createViatraQueryExecutionSchema​(ViatraQueryEngine engine,
                                                                       Scheduler.ISchedulerFactory schedulerFactory,
                                                                       java.util.Set<RuleSpecification<?>> specifications)
        Creates a new execution schema that is initialized over the given ViatraQueryEngine, creates an executor and agenda with the given rule specifications and prepares a scheduler using the provided factory.
        Parameters:
        engine -
        schedulerFactory -
        specifications -
        Returns:
        the prepared execution schema
      • createViatraQueryExecutionSchema

        public static ExecutionSchema createViatraQueryExecutionSchema​(ViatraQueryEngine engine,
                                                                       Scheduler.ISchedulerFactory schedulerFactory)
        Creates a new execution schema that is initialized over the given ViatraQueryEngine, creates an executor and agenda without rules and prepares a scheduler using the provided factory.
        Parameters:
        engine -
        schedulerFactory -
        Returns:
        the prepared execution schema