aboutsummaryrefslogtreecommitdiff
path: root/bestflags/generation.py
diff options
context:
space:
mode:
authorYuheng Long <yuhenglong@google.com>2013-08-07 08:48:05 -0700
committerChromeBot <chrome-bot@google.com>2013-08-07 22:14:42 -0700
commit057ad5c77ef0ea44ee260718eb6d30afef2f7f83 (patch)
tree75dc92c063a32304259fc834382c9cf7fa314602 /bestflags/generation.py
parent570b2ce931d40a335f3b02ed859b376040b5fb67 (diff)
downloadtoolchain-utils-057ad5c77ef0ea44ee260718eb6d30afef2f7f83.tar.gz
Add the Genetic Algorithm.
BUG=None TEST=unit testings for the pipeline stage, pipeline workers, generation, steering, task, flag, hill climbing and genetic algorithm. Change-Id: I2864d6a6859fff43bc2d3afb059c672c54bbe385 Reviewed-on: https://gerrit-int.chromium.org/42472 Reviewed-by: Simon Que <sque@google.com> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
Diffstat (limited to 'bestflags/generation.py')
-rw-r--r--bestflags/generation.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bestflags/generation.py b/bestflags/generation.py
index 0bc2f57c..8e1358ad 100644
--- a/bestflags/generation.py
+++ b/bestflags/generation.py
@@ -50,6 +50,11 @@ class Generation(object):
# generations until all its pending tasks have been executed.
self._pending = len(exe_pool)
+ def CandidatePool(self):
+ """Return the candidate tasks of this generation."""
+
+ return self._candidate_pool
+
def Pool(self):
"""Return the task set of this generation."""