test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 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.

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

Member Function Documentation

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

Definition at line 159 of file psClasses.py.

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

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)
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.

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:
return self.AreDependent.__str__(topDown=True)

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__().