watcher.decision_engine.solution.base
Modulewatcher.decision_engine.solution.base
Module¶A Solution is the result of execution of a strategy (i.e., an algorithm). Each solution is composed of many pieces of information:
A Solution is different from an Action Plan because it contains the non-scheduled list of Actions which is produced by a Strategy. In other words, the list of Actions in a Solution has not yet been re-ordered by the Watcher Planner.
Note that some algorithms (i.e. Strategies) may generate several Solutions. This gives rise to the problem of determining which Solution should be applied.
Two approaches to dealing with this can be envisaged:
watcher.decision_engine.solution.base.
BaseSolution
(goal, strategy)[source]¶Bases: object
add_action
(action_type, resource_id, input_parameters=None)[source]¶Add a new Action in the Solution
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.