ATLAS Offline Software
Loading...
Searching...
No Matches
python.trfGraph.graphPath Class Reference

Path object holding a list of nodes and data types which trace a single path through the graph. More...

Inheritance diagram for python.trfGraph.graphPath:
Collaboration diagram for python.trfGraph.graphPath:

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, endNodeName, data, cost=0)
 graphPath constructor
 path (self)
 cost (self)
 newData (self)
 extraData (self)
 addToPath (self, newNodeName, newData=set(), extraData=set(), extraCost=0)
 addCost (self, cost)
 __str__ (self)

Protected Attributes

list _path = [endNodeName]
 _data = data
 _cost = cost
 _newData = dict()
 _extraData = dict()

Detailed Description

Path object holding a list of nodes and data types which trace a single path through the graph.

Definition at line 540 of file trfGraph.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

python.trfGraph.graphPath.__init__ ( self,
endNodeName,
data,
cost = 0 )

graphPath constructor

Parameters
endNodeNameThe node name where this path will end
dataThe data type which this path will make
costThe starting cost of this path (default 0)

Definition at line 546 of file trfGraph.py.

546 def __init__(self, endNodeName, data, cost = 0):
547 self._path = [endNodeName]
548 self._data = data
549 self._cost = cost
550
551
555 self._newData = dict()
556 self._extraData = dict()
557

Member Function Documentation

◆ __str__()

python.trfGraph.graphPath.__str__ ( self)

Definition at line 583 of file trfGraph.py.

583 def __str__(self):
584 return '{0}: path {1}; cost {2}, newData {3}, extraData {4}'.format(self._data, self._path, self._cost, self._newData, self._extraData)
585

◆ addCost()

python.trfGraph.graphPath.addCost ( self,
cost )

Definition at line 580 of file trfGraph.py.

580 def addCost(self, cost):
581 self._cost += cost
582

◆ addToPath()

python.trfGraph.graphPath.addToPath ( self,
newNodeName,
newData = set(),
extraData = set(),
extraCost = 0 )

Definition at line 574 of file trfGraph.py.

574 def addToPath(self, newNodeName, newData = set(), extraData = set(), extraCost = 0):
575 self._path.insert(0, newNodeName)
576 self._newData[newNodeName] = newData
577 self._cost += extraCost
578 self._extraData[newNodeName] = extraData
579
STL class.

◆ cost()

python.trfGraph.graphPath.cost ( self)

Definition at line 563 of file trfGraph.py.

563 def cost(self):
564 return self._cost
565
int cost(std::vector< std::string > &files, node &n, const std::string &directory="", bool deleteref=false, bool relocate=false)
Definition hcg.cxx:922

◆ extraData()

python.trfGraph.graphPath.extraData ( self)

Definition at line 571 of file trfGraph.py.

571 def extraData(self):
572 return self._extraData
573

◆ newData()

python.trfGraph.graphPath.newData ( self)

Definition at line 567 of file trfGraph.py.

567 def newData(self):
568 return self._newData
569

◆ path()

python.trfGraph.graphPath.path ( self)

Definition at line 559 of file trfGraph.py.

559 def path(self):
560 return self._path
561

Member Data Documentation

◆ _cost

python.trfGraph.graphPath._cost = cost
protected

Definition at line 549 of file trfGraph.py.

◆ _data

python.trfGraph.graphPath._data = data
protected

Definition at line 548 of file trfGraph.py.

◆ _extraData

python.trfGraph.graphPath._extraData = dict()
protected

Definition at line 556 of file trfGraph.py.

◆ _newData

python.trfGraph.graphPath._newData = dict()
protected
Note
These are dictionaries, keyed by substep, with the data which needs to be produced in that substep, i.e., it is the output data for that step and the input data for the downstream step. To avoid data duplication the values are sets. extraData gives data which is not made in this path itself, but is needed in order to satisfy multi-data entry criteria. newData is data which is produced along this path.

Definition at line 555 of file trfGraph.py.

◆ _path

python.trfGraph.graphPath._path = [endNodeName]
protected

Definition at line 547 of file trfGraph.py.


The documentation for this class was generated from the following file: