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 77 of file psClasses.py.

Constructor & Destructor Documentation

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

Definition at line 79 of file psClasses.py.

79  def __init__(self,value=None):
80  self.SeenLibs = []
81  self.SeenModules = []
82  self.SeenSubModules = []
83  if value:
84  list.__init__(self,value)
85  else:
86  list.__init__(self)
87 
def __init__(self, value=None)
Definition: psClasses.py:79

Member Function Documentation

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

Definition at line 117 of file psClasses.py.

117  def __setitem__(self,index,value):
118  if not value.__class__ == BuildTreeNode:
119  raise TypeError("Expected BuildTreeNode")
120  self.SeenLibs.append(value.LibName)
121  self.SeenModules.append(value.Module)
122  self.SeenSubModules.append(value.SubModule)
123  list.__setitem__(self,index,value)
124 
def __setitem__(self, index, value)
Definition: psClasses.py:117
def psClasses.BuildTreeNodeList.__str__ (   self,
  topDown = False,
  direction = False 
)

Definition at line 133 of file psClasses.py.

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

Referenced by edmStreamStallGrapher.Point.__repr__().

133  def __str__(self,topDown=False,direction=False):
134  if not topDown:
135  return "[\n...%s]" % str("\n...".join([str(it).replace("...","......") for it in self]))
136  else:
137  if direction:
138  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 ])
139  else:
140  return "\n".join([it.__str__(True) for it in self])
141 
def __str__(self, topDown=False, direction=False)
Definition: psClasses.py:133
def replace(string, replacements)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
def psClasses.BuildTreeNodeList.append (   self,
  value 
)

Definition at line 125 of file psClasses.py.

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

Referenced by diclist.diclist.add(), and Vispa.Views.PropertyView.PropertyView.addProperty().

125  def append(self,value):
126  if not value.__class__ == BuildTreeNode:
127  raise TypeError("Expected BuildTreeNode")
128  value.LibName not in self.SeenLibs and self.SeenLibs.append(value.LibName)
129  value.Module not in self.SeenModules and self.SeenModules.append(value.Module)
130  value.SubModule not in self.SeenSubModules and self.SeenSubModules.append(value.SubModule)
131  list.append(self,value)
132 
def append(self, value)
Definition: psClasses.py:125
def psClasses.BuildTreeNodeList.findDep (   self,
  dep 
)

Definition at line 114 of file psClasses.py.

References psClasses.BuildTreeNodeList.findLib().

114  def findDep(self,dep):
115  return self.findLib(dep.replace("/",""))
116 
def findLib(self, lib, head=None)
Definition: psClasses.py:88
def findDep(self, dep)
Definition: psClasses.py:114
def psClasses.BuildTreeNodeList.findLib (   self,
  lib,
  head = None 
)

Definition at line 88 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.findDep().

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

Definition at line 105 of file psClasses.py.

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

Member Data Documentation

psClasses.BuildTreeNodeList.SeenLibs

Definition at line 80 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenModules

Definition at line 81 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().

psClasses.BuildTreeNodeList.SeenSubModules

Definition at line 82 of file psClasses.py.

Referenced by psClasses.BuildTreeNodeList.append().