aboutsummaryrefslogtreecommitdiff
path: root/bestflags/generation.py
diff options
context:
space:
mode:
Diffstat (limited to 'bestflags/generation.py')
-rw-r--r--bestflags/generation.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bestflags/generation.py b/bestflags/generation.py
index 7f0e94a1..0bc2f57c 100644
--- a/bestflags/generation.py
+++ b/bestflags/generation.py
@@ -107,19 +107,24 @@ class Generation(object):
return True
def Improve(self):
- """True if this generation has improvement over its parent generation.
+ """True if this generation has improvement upon its parent generation.
Raises:
NoneOverridingError: The subclass should override this method.
"""
raise NoneOverridingError('Must be implemented by child class')
- def Next(self):
+ def Next(self, _):
"""Calculate the next generation.
This is the core of the framework implementation. It must be overridden by
the concrete subclass to implement algorithm specific generations.
+ Args:
+ _: A set of tasks that have been generated before. The overridden method
+ in the subclasses can use this so as not to generate task that has been
+ generated before.
+
Returns:
A set of new generations.