![]() |
ATLAS Offline Software
|
Vanilla graph node. 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, name, inData, outData, weight=None) | |
| Graph node constructor. | |
| name (self) | |
| inData (self) | |
| outData (self) | |
| inputDataTypes (self) | |
| outputDataTypes (self) | |
| connections (self) | |
| weights (self) | |
| addConnection (self, toExe, data, direction='out') | |
| Add a new edge connection for this node. | |
| delConnection (self, toExe, direction='out') | |
| Delete a connection from this node. | |
| resetConnections (self) | |
| Delete all connections. | |
| __str__ (self) | |
| __repr__ (self) | |
Public Attributes | |
| inData | |
Protected Member Functions | |
| _flattenSet (self, startSet) | |
| Take a list and return all simple members plus the members of any list/tuples in the set (i.e., flatten out multiple input tuples) | |
Protected Attributes | |
| _name = name | |
| _inData = set(inData) | |
| _outData = set(outData) | |
| dict | _inWeights = {} |
| _inputDataTypes = self._flattenSet(self._inData) | |
| _outputDataTypes = self._flattenSet(self._outData) | |
| dict | _connections = {'in': {}, 'out': {}} |
Vanilla graph node.
Definition at line 429 of file trfGraph.py.
|
inherited |
Definition at line 90 of file EDM_MasterSearch.h.
| python.trfGraph.graphNode.__init__ | ( | self, | |
| name, | |||
| inData, | |||
| outData, | |||
| weight = None ) |
Graph node constructor.
| name | Name of this node |
| indata | Iterable containing input data connections for this node |
| outdata | Iterable containing output data connections for this node |
| weight | Weights (relative execution cost) for each input connection to this node |
inData and outData a list, tuple or set is acceptable. Multiple input data types should be expressed as lists or tuples themselves, e.g., [('HIST_AOD', 'HIST_ESD')]. They cannot be sets themselves as python sets cannot contain other sets. Definition at line 439 of file trfGraph.py.
| python.trfGraph.graphNode.__repr__ | ( | self | ) |
Definition at line 525 of file trfGraph.py.
| python.trfGraph.graphNode.__str__ | ( | self | ) |
Definition at line 522 of file trfGraph.py.
|
protected |
Take a list and return all simple members plus the members of any list/tuples in the set (i.e., flatten out multiple input tuples)
Definition at line 513 of file trfGraph.py.
| python.trfGraph.graphNode.addConnection | ( | self, | |
| toExe, | |||
| data, | |||
| direction = 'out' ) |
Add a new edge connection for this node.
c toExe Other node for this edge
c data Data which connects these nodes (iterable), converted to set object
c direction If this is an incoming or outgoing edge for this node
Definition at line 498 of file trfGraph.py.
| python.trfGraph.graphNode.connections | ( | self | ) |
Definition at line 487 of file trfGraph.py.
| python.trfGraph.graphNode.delConnection | ( | self, | |
| toExe, | |||
| direction = 'out' ) |
Delete a connection from this node.
c toExe Other node for this vertex
c direction If this is an incoming or outgoing edge for this node
Definition at line 504 of file trfGraph.py.
| python.trfGraph.graphNode.inData | ( | self | ) |
Definition at line 471 of file trfGraph.py.
| python.trfGraph.graphNode.inputDataTypes | ( | self | ) |
Definition at line 479 of file trfGraph.py.
| python.trfGraph.graphNode.name | ( | self | ) |
Definition at line 467 of file trfGraph.py.
| python.trfGraph.graphNode.outData | ( | self | ) |
Definition at line 475 of file trfGraph.py.
| python.trfGraph.graphNode.outputDataTypes | ( | self | ) |
Definition at line 483 of file trfGraph.py.
| python.trfGraph.graphNode.resetConnections | ( | self | ) |
Delete all connections.
Definition at line 508 of file trfGraph.py.
| python.trfGraph.graphNode.weights | ( | self | ) |
Definition at line 491 of file trfGraph.py.
|
protected |
Definition at line 464 of file trfGraph.py.
Definition at line 441 of file trfGraph.py.
|
protected |
Definition at line 457 of file trfGraph.py.
|
protected |
_inWeights takes the form of a dictionary, keyed by input data type and giving the relative cost of executing this node with those input data types. Definition at line 446 of file trfGraph.py.
|
protected |
Definition at line 440 of file trfGraph.py.
Definition at line 442 of file trfGraph.py.
|
protected |
Definition at line 458 of file trfGraph.py.
| python.trfGraph.graphNode.inData |
Definition at line 480 of file trfGraph.py.