CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Public Attributes

 esProducers
 
 esSources
 
 modules
 
 services
 

Detailed Description

Form sets of all modules, ESProducers, ESSources and Services in visited objects. Can be used
to visit Paths, EndPaths, Sequences or Tasks. Includes in sets objects on sub-Sequences and sub-Tasks

Definition at line 69 of file SequenceVisitors.py.

Constructor & Destructor Documentation

def SequenceVisitors.NodeVisitor.__init__ (   self)

Member Function Documentation

def SequenceVisitors.NodeVisitor.enter (   self,
  visitee 
)

Definition at line 77 of file SequenceVisitors.py.

77  def enter(self,visitee):
78  if visitee.isLeaf():
79  if isinstance(visitee, _Module):
80  self.modules.add(visitee)
81  elif isinstance(visitee, ESProducer):
82  self.esProducers.add(visitee)
83  elif isinstance(visitee, ESSource):
84  self.esSources.add(visitee)
85  elif isinstance(visitee, Service):
86  self.services.add(visitee)
def SequenceVisitors.NodeVisitor.leave (   self,
  visitee 
)

Definition at line 87 of file SequenceVisitors.py.

87  def leave(self,visitee):
88  pass
89 

Member Data Documentation

SequenceVisitors.NodeVisitor.esProducers

Definition at line 74 of file SequenceVisitors.py.

SequenceVisitors.NodeVisitor.esSources

Definition at line 75 of file SequenceVisitors.py.

SequenceVisitors.NodeVisitor.modules

Definition at line 73 of file SequenceVisitors.py.

SequenceVisitors.NodeVisitor.services

Definition at line 76 of file SequenceVisitors.py.

Referenced by config.Config.__str__().