CMS 3D CMS Logo

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

Public Member Functions

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

Detailed Description

Definition at line 7 of file SequenceVisitors.py.

Constructor & Destructor Documentation

◆ __init__()

def SequenceVisitors.ScheduleTaskValidator.__init__ (   self)

Definition at line 8 of file SequenceVisitors.py.

8  def __init__(self):
9  pass

Member Function Documentation

◆ enter()

def SequenceVisitors.ScheduleTaskValidator.enter (   self,
  visitee 
)

Definition at line 10 of file SequenceVisitors.py.

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

◆ leave()

def SequenceVisitors.ScheduleTaskValidator.leave (   self,
  visitee 
)

Definition at line 18 of file SequenceVisitors.py.

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