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

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

Member Function Documentation

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

Definition at line 159 of file psClasses.py.

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

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

Definition at line 171 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__().

171  def __str__(self,topDown=False):
172  if not topDown:
173  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)
174  else:
175  if len(self.AreDependent)== 0:
176  return "'%s':'%s'\n---State = %d \n---DependsOn : %s " % (self.LibName,self.SubModule or self.Module,self.State,self.DependsOn.__str__(True,True).replace("---","------"))
177  else:
178  return self.AreDependent.__str__(topDown=True)
def replace(string, replacements)
def __str__(self, topDown=False)
Definition: psClasses.py:171

Member Data Documentation

psClasses.BuildTreeNode.AreDependent

Definition at line 150 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.BThread

Definition at line 156 of file psClasses.py.

psClasses.BuildTreeNode.DependsOn

Definition at line 146 of file psClasses.py.

psClasses.BuildTreeNode.LibName

Definition at line 154 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.Module

Definition at line 153 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.State

Definition at line 157 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.SubModule

Definition at line 155 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().