Merge "Name the graph property the same as in engine"

This commit is contained in:
Jenkins
2014-01-03 22:19:42 +00:00
committed by Gerrit Code Review
2 changed files with 6 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ class ActionEngine(base.EngineBase):
@property
def execution_graph(self):
self.compile()
return self._analyzer.graph
return self._analyzer.execution_graph
@lock_utils.locked
def run(self):

View File

@@ -22,14 +22,17 @@ from taskflow import states as st
class GraphAnalyzer(object):
"""Analyzes graph to get next nodes for execution or reversion"""
"""Analyzes a execution graph to get the next nodes for execution or
reversion by utilizing the graphs nodes and edge relations and comparing
the node state against the states stored in storage.
"""
def __init__(self, graph, storage):
self._graph = graph
self._storage = storage
@property
def graph(self):
def execution_graph(self):
return self._graph
def browse_nodes_for_execute(self, node=None):