CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
psClasses.BuildTreeNodeList Class Reference
Inheritance diagram for psClasses.BuildTreeNodeList:

Public Member Functions

def __init__ (self, value=None)
 
def __setitem__ (self, index, value)
 
def __str__ (self, topDown=False, direction=False)
 
def append (self, value)
 
def findDep (self, dep)
 
def findLib (self, lib, head=None)
 
def startThreads (self)
 

Public Attributes

 SeenLibs
 
 SeenModules
 
 SeenSubModules
 

Detailed Description

Definition at line 79 of file psClasses.py.

Constructor & Destructor Documentation

◆ __init__()

def psClasses.BuildTreeNodeList.__init__ (   self,
  value = None 
)

Definition at line 81 of file psClasses.py.

81  def __init__(self,value=None):
82  self.SeenLibs = []
83  self.SeenModules = []
84  self.SeenSubModules = []
85  if value:
86  list.__init__(self,value)
87  else:
88  list.__init__(self)
89 

Member Function Documentation

◆ __setitem__()

def psClasses.BuildTreeNodeList.__setitem__ (   self,
  index,
  value 
)

Definition at line 119 of file psClasses.py.

119  def __setitem__(self,index,value):
120  if not value.__class__ == BuildTreeNode:
121  raise TypeError("Expected BuildTreeNode")
122  self.SeenLibs.append(value.LibName)
123  self.SeenModules.append(value.Module)
124  self.SeenSubModules.append(value.SubModule)
125  list.__setitem__(self,index,value)
126 

References psClasses.BuildTreeNodeList.append(), psClasses.BuildTreeNodeList.SeenLibs, psClasses.BuildTreeNodeList.SeenModules, and psClasses.BuildTreeNodeList.SeenSubModules.

◆ __str__()

def psClasses.BuildTreeNodeList.__str__ (   self,
  topDown = False,
  direction = False 
)

Definition at line 135 of file psClasses.py.

135  def __str__(self,topDown=False,direction=False):
136  if not topDown:
137  return "[\n...%s]" % str("\n...".join([str(it).replace("...","......") for it in self]))
138  else:
139  if direction:
140  return "[\n---%s]" % "\n---".join([ "'%s':'%s'\n------State = %d \n------DependsOn : %s " % (it.LibName,it.SubModule or it.Module,it.State,it.DependsOn.__str__(True,True).replace("---","------")) for it in self ])
141  else:
142  return "\n".join([it.__str__(True) for it in self])
143 

References join(), python.rootplot.root2matplotlib.replace(), and str.

Referenced by edmStreamStallGrapher.Point.__repr__().

◆ append()

def psClasses.BuildTreeNodeList.append (   self,
  value 
)

Definition at line 127 of file psClasses.py.

127  def append(self,value):
128  if not value.__class__ == BuildTreeNode:
129  raise TypeError("Expected BuildTreeNode")
130  value.LibName not in self.SeenLibs and self.SeenLibs.append(value.LibName)
131  value.Module not in self.SeenModules and self.SeenModules.append(value.Module)
132  value.SubModule not in self.SeenSubModules and self.SeenSubModules.append(value.SubModule)
133  list.append(self,value)
134 

References psClasses.BuildTreeNodeList.SeenLibs, psClasses.BuildTreeNodeList.SeenModules, and psClasses.BuildTreeNodeList.SeenSubModules.

Referenced by psClasses.BuildTreeNodeList.__setitem__(), and diclist.diclist.add().

◆ findDep()

def psClasses.BuildTreeNodeList.findDep (   self,
  dep 
)

Definition at line 116 of file psClasses.py.

116  def findDep(self,dep):
117  return self.findLib(dep.replace("/",""))
118 

References psClasses.BuildTreeNodeList.findLib().

◆ findLib()

def psClasses.BuildTreeNodeList.findLib (   self,
  lib,
  head = None 
)

Definition at line 90 of file psClasses.py.

90  def findLib(self,lib,head=None):
91  if len(self) == 0:
92  return None
93  if head == self:
94  return None
95  if head == None:
96  head = self
97  itP=None
98  for it in self:
99  if lib == it.LibName:
100  return it
101  else:
102  itP=it.AreDependent.findLib(lib,head)
103  if itP is not None:
104  return itP
105  return itP
106 

Referenced by psClasses.BuildTreeNodeList.findDep().

◆ startThreads()

def psClasses.BuildTreeNodeList.startThreads (   self)

Definition at line 107 of file psClasses.py.

107  def startThreads(self):
108  for node in self:
109  if not node.BThread.is_alive():
110  try:
111  node.BThread.start()
112  except:
113  pass
114  node.AreDependent.startThreads()
115 

Member Data Documentation

◆ SeenLibs

psClasses.BuildTreeNodeList.SeenLibs

◆ SeenModules

psClasses.BuildTreeNodeList.SeenModules

◆ SeenSubModules

psClasses.BuildTreeNodeList.SeenSubModules
join
static std::string join(char **cmd)
Definition: RemoteFile.cc:17
str
#define str(s)
Definition: TestProcessor.cc:52
mps_setup.append
append
Definition: mps_setup.py:85
TriggerAnalyzer.__str__
def __str__(self)
Definition: TriggerAnalyzer.py:103
python.rootplot.root2matplotlib.replace
def replace(string, replacements)
Definition: root2matplotlib.py:444