Class DefaultGraphSchedule

    • Constructor Detail

      • DefaultGraphSchedule

        public DefaultGraphSchedule()
    • Method Detail

      • schedule

        public ISchedulableAction schedule​(ScheduleParameters baseParams,
                                           Object rootNode,
                                           GraphExecutor<?> executor)
        Schedules the execution of a graph starting with the specified root node. The base parameters object is used to schedule the execution of the primary node, other nodes' execution should be based on these parameters but should not be scheduled as repeating actions. The base node itself can be scheduled as a repeating action, allowing for repeated execution of the graph.

        Specified by:
        schedule in interface IGraphSchedule
        Parameters:
        baseParams - the parameters for scheduling the root node and a basis for the scheduling of the following nodes
        rootNode - the node to start execution on
        executor - the action that will execute the graph
        Returns:
        the action scheduled for the root node