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
SequenceVisitors.ScheduleTaskValidator Class Reference
Inheritance diagram for SequenceVisitors.ScheduleTaskValidator:

Public Member Functions

def __init__
 
def enter
 
def leave
 

Detailed Description

Definition at line 7 of file SequenceVisitors.py.

Constructor & Destructor Documentation

def SequenceVisitors.ScheduleTaskValidator.__init__ (   self)

Definition at line 8 of file SequenceVisitors.py.

8 
9  def __init__(self):
pass

Member Function Documentation

def SequenceVisitors.ScheduleTaskValidator.enter (   self,
  visitee 
)

Definition at line 10 of file SequenceVisitors.py.

10 
11  def enter(self,visitee):
12  if visitee.isLeaf():
13  if isinstance(visitee, _Labelable):
14  if not visitee.hasLabel_():
15  raise ValueError("A task associated with the Schedule contains a module of type '"+visitee.type_()+"'\nwhich has no assigned label.")
16  elif isinstance(visitee, Service):
17  if not visitee._inProcess:
raise ValueError("A task associated with the Schedule contains a service of type '"+visitee.type_()+"'\nwhich is not attached to the process.")
def SequenceVisitors.ScheduleTaskValidator.leave (   self,
  visitee 
)

Definition at line 18 of file SequenceVisitors.py.

18 
19  def leave(self,visitee):
20  pass
21 
# Use this on Paths