Strategy plugins documentation

Following https://review.openstack.org/#/c/245903, this patchset
documents the implementation and integration of custom Strategies
with Watcher.

Change-Id: I573758695d67d523834f145824b6f6cfdd8997fe
This commit is contained in:
Vincent Françoise
2015-11-23 11:35:47 +01:00
parent 7c52a1448d
commit 3a03eb930c
3 changed files with 126 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ LOG = log.getLogger(__name__)
@six.add_metaclass(abc.ABCMeta)
class BaseStrategy(object):
"""A Strategy is an algorithm implementation which is able to find a
Solution for a given Goal.
"""
def __init__(self, name=None, description=None):
self._name = name
self.description = description