![]() |
ATLAS Offline Software
|
Simple graph object describing the links between executors. More...
Public Types | |
| typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type | result |
Public Member Functions | |
| __init__ (self, executorSet, inputData=set([]), outputData=set([])) | |
| Initialise executor graph. | |
| inputData (self) | |
| inputData (self, inputData) | |
| outputData (self) | |
| outputData (self, outputData) | |
| execution (self) | |
| Return a list of execution nodes with their data inputs/outputs. | |
| data (self) | |
| Return a list of all data used in this execution. | |
| addNode (self, executor) | |
| Add an executor node to the graph. | |
| deleteNote (self, executor) | |
| Remove an executor node from the graph. | |
| findConnections (self) | |
| Look at executor nodes and work out how they are connected. | |
| doToposort (self) | |
| Find a topologically sorted list of the graph nodes. | |
| findExecutionPath (self) | |
| Find the graph's execution nodes, from input to output data types with each activated step and the inputs/outputs. | |
| __str__ (self) | |
| Nodes in topologically sorted order, if available, else sorted name order. | |
| __repr__ (self) | |
| Nodes in topologically sorted order, if available, else sorted name order. | |
Protected Member Functions | |
| _resetConnections (self) | |
| _bestPath (self, data, dataAvailable, startNodeName='_start', endNodeName=None) | |
| Find the best path from a end to a start node, producing a certain type of data given the set of currently available data and the current set of activated nodes. | |
| _extendPath (self, path, currentNodeName, nextNodeName) | |
| Connect a path to a particular node. | |
Protected Attributes | |
| dict | _nodeDict = {} |
| _inputData = set(inputData) | |
| _outputData = set(outputData) | |
| list | _toposort = [] |
| list | _toposortData = [] |
| dict | _execution = {} |
Simple graph object describing the links between executors.
Definition at line 42 of file trfGraph.py.
|
inherited |
Definition at line 90 of file EDM_MasterSearch.h.
| python.trfGraph.executorGraph.__init__ | ( | self, | |
| executorSet, | |||
| inputData = set([]), | |||
| outputData = set([]) ) |
Initialise executor graph.
| executorSet | Set of executor instances |
| inputData | Iterable with input data for this transform's execution |
| outputData | Iterable with output data for this transform's execution |
Definition at line 48 of file trfGraph.py.
| python.trfGraph.executorGraph.__repr__ | ( | self | ) |
Nodes in topologically sorted order, if available, else sorted name order.
Definition at line 416 of file trfGraph.py.
| python.trfGraph.executorGraph.__str__ | ( | self | ) |
Nodes in topologically sorted order, if available, else sorted name order.
Definition at line 402 of file trfGraph.py.
|
protected |
Find the best path from a end to a start node, producing a certain type of data given the set of currently available data and the current set of activated nodes.
| data | Data to produce |
| dataAvailable | Data types which can be used as sources |
| startNodeName | Find the path to this node (default '_start') |
| endNodeName | Find the path from this node (default '_end_DATATYPE') |
We can always ask the algorithm to trace the part from end to start for this data type (this data is in endnode by construction). If we have to go along an edge where the data is not yet available then we need to add this data to our list of data to produce.
Definition at line 299 of file trfGraph.py.
|
protected |
Connect a path to a particular node.
| path | graphPath instance |
| nextNodeName | Node to connect to |
Definition at line 372 of file trfGraph.py.
|
protected |
Definition at line 148 of file trfGraph.py.
| python.trfGraph.executorGraph.addNode | ( | self, | |
| executor ) |
Add an executor node to the graph.
Definition at line 138 of file trfGraph.py.
| python.trfGraph.executorGraph.data | ( | self | ) |
Return a list of all data used in this execution.
Definition at line 126 of file trfGraph.py.
| python.trfGraph.executorGraph.deleteNote | ( | self, | |
| executor ) |
Remove an executor node from the graph.
Definition at line 143 of file trfGraph.py.
| python.trfGraph.executorGraph.doToposort | ( | self | ) |
Find a topologically sorted list of the graph nodes.
Definition at line 171 of file trfGraph.py.
| python.trfGraph.executorGraph.execution | ( | self | ) |
Return a list of execution nodes with their data inputs/outputs.
Definition at line 113 of file trfGraph.py.
| python.trfGraph.executorGraph.findConnections | ( | self | ) |
Look at executor nodes and work out how they are connected.
Definition at line 154 of file trfGraph.py.
| python.trfGraph.executorGraph.findExecutionPath | ( | self | ) |
Find the graph's execution nodes, from input to output data types with each activated step and the inputs/outputs.
c outputDataTypes Data to produce
c inputDataTypes Data available as inputs
Definition at line 227 of file trfGraph.py.
| python.trfGraph.executorGraph.inputData | ( | self | ) |
Definition at line 96 of file trfGraph.py.
| python.trfGraph.executorGraph.inputData | ( | self, | |
| inputData ) |
Definition at line 100 of file trfGraph.py.
| python.trfGraph.executorGraph.outputData | ( | self | ) |
Definition at line 104 of file trfGraph.py.
| python.trfGraph.executorGraph.outputData | ( | self, | |
| outputData ) |
Definition at line 108 of file trfGraph.py.
|
protected |
Definition at line 229 of file trfGraph.py.
Definition at line 66 of file trfGraph.py.
|
protected |
Definition at line 51 of file trfGraph.py.
|
protected |
Definition at line 67 of file trfGraph.py.
|
protected |
Definition at line 89 of file trfGraph.py.
|
protected |
Definition at line 90 of file trfGraph.py.