CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, libname="", module="", submodule="", depends=None, areDependent=None, weight=1, srvqueue=None)
 
def __setattr__ (self, name, value)
 
def __str__ (self, topDown=False)
 

Public Attributes

 AreDependent
 
 BThread
 
 DependsOn
 
 LibName
 
 Module
 
 State
 
 SubModule
 

Detailed Description

Definition at line 143 of file psClasses.py.

Constructor & Destructor Documentation

def psClasses.BuildTreeNode.__init__ (   self,
  libname = "",
  module = "",
  submodule = "",
  depends = None,
  areDependent = None,
  weight = 1,
  srvqueue = None 
)

Definition at line 145 of file psClasses.py.

145  def __init__(self,libname="",module="",submodule="",depends=None,areDependent=None,weight=1,srvqueue=None):
146  if depends==None:
148  else:
149  self.DependsOn = depends
150  if areDependent==None:
152  else:
153  self.AreDependent = areDependent
154  self.Module = module
155  self.LibName = libname
156  self.SubModule = submodule
157  self.BThread = srvqueue is not None and BuildThread(self,srvqueue,weight) or None
158  self.State = STATE_CREATED
159 
def __init__(self, libname="", module="", submodule="", depends=None, areDependent=None, weight=1, srvqueue=None)
Definition: psClasses.py:145

Member Function Documentation

def psClasses.BuildTreeNode.__setattr__ (   self,
  name,
  value 
)

Definition at line 160 of file psClasses.py.

Referenced by Config.Process._findPreferred(), Config.Process.extend(), and GenObject.GenObject.setValue().

160  def __setattr__(self,name,value):
161  if name is "DependsOn" or name is "AreDependent":
162  if not value.__class__ == BuildTreeNodeList:
163  raise TypeError("Expected BuildTreeNodeList")
164  elif name is "State" or name is "ModulesToDo":
165  if not value.__class__ == int:
166  raise TypeError("Expected int")
167  elif name is "Module" or name is "SubModule" or name is "LibName":
168  if not value.__class__ == str:
169  raise TypeError("Expected str")
170  object.__setattr__(self,name,value)
171 
def __setattr__(self, name, value)
Definition: psClasses.py:160
def psClasses.BuildTreeNode.__str__ (   self,
  topDown = False 
)

Definition at line 172 of file psClasses.py.

References psClasses.BuildTreeNode.AreDependent, psClasses.BuildTreeNode.LibName, SiStripQualityHistory.Module, SiPixelQualityHistory.Module, psClasses.BuildTreeNode.Module, python.rootplot.root2matplotlib.replace(), psClasses.BuildTreeNode.State, and psClasses.BuildTreeNode.SubModule.

Referenced by edmStreamStallGrapher.Point.__repr__().

172  def __str__(self,topDown=False):
173  if not topDown:
174  return "'%s':'%s'\n...State = %d , Is it Done = %s \n...AreDependent : %s " % (self.LibName,self.SubModule or self.Module,self.State,self.BThread.IsComplete,self.AreDependent)
175  else:
176  if len(self.AreDependent)== 0:
177  return "'%s':'%s'\n---State = %d \n---DependsOn : %s " % (self.LibName,self.SubModule or self.Module,self.State,self.DependsOn.__str__(True,True).replace("---","------"))
178  else:
179  return self.AreDependent.__str__(topDown=True)
def replace(string, replacements)
def __str__(self, topDown=False)
Definition: psClasses.py:172

Member Data Documentation

psClasses.BuildTreeNode.AreDependent

Definition at line 151 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.BThread

Definition at line 157 of file psClasses.py.

psClasses.BuildTreeNode.DependsOn

Definition at line 147 of file psClasses.py.

psClasses.BuildTreeNode.LibName

Definition at line 155 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.Module

Definition at line 154 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.State

Definition at line 158 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.SubModule

Definition at line 156 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().