CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
psClasses.BuildTreeNode Class Reference
Inheritance diagram for psClasses.BuildTreeNode:

Public Member Functions

def __init__
 
def __setattr__
 
def __str__
 

Public Attributes

 AreDependent
 
 BThread
 
 DependsOn
 
 LibName
 
 Module
 
 State
 
 SubModule
 

Detailed Description

Definition at line 144 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 146 of file psClasses.py.

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

Member Function Documentation

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

Definition at line 161 of file psClasses.py.

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

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

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

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

Member Data Documentation

psClasses.BuildTreeNode.AreDependent

Definition at line 152 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.BThread

Definition at line 158 of file psClasses.py.

psClasses.BuildTreeNode.DependsOn

Definition at line 148 of file psClasses.py.

psClasses.BuildTreeNode.LibName

Definition at line 156 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.Module

Definition at line 155 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.State

Definition at line 159 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().

psClasses.BuildTreeNode.SubModule

Definition at line 157 of file psClasses.py.

Referenced by psClasses.BuildTreeNode.__str__().