Lines Matching full:generation

4 """The framework stage that produces the next generation of tasks to run.
15 """The core method template that produces the next generation of tasks to run.
17 This method waits for the results of the tasks from the previous generation.
19 next generation of tasks.
21 The main logic of producing the next generation from previous generation is
25 in the concrete subclasses of the class Generation to produce the next
26 application-specific generation. The steering method invokes the 'Next'
27 method, produces the next generation and submits the tasks in this generation
43 # referenced to as ready tasks. Once there is no pending generation, the
53 for generation in generations:
55 for task in [task for task in generation.Pool() if task not in cache]:
66 # The algorithm is done if there is no pending generation. A generation is
83 # Find out which pending generation this ready task belongs to. This pending
84 # generation will have one less pending task. The "next" expression iterates
85 # the generations in waiting until the first generation whose UpdateTask
87 generation = next(gen for gen in waiting if gen.UpdateTask(task))
90 if not generation.Done():
93 # All the tasks in the generation are finished. The generation is ready to
94 # produce the next generation.
95 waiting.remove(generation)
97 # Check whether a generation should generate the next generation.
98 # A generation may not generate the next generation, e.g., because a
101 if not generation.IsImproved():
104 for new_generation in generation.Next(cache):
105 # Make sure that each generation should contain at least one task.