Definition at line 7 of file SequenceVisitors.py.
def SequenceVisitors.ScheduleTaskValidator.__init__ |
( |
|
self | ) |
|
def SequenceVisitors.ScheduleTaskValidator.enter |
( |
|
self, |
|
|
|
visitee |
|
) |
| |
Definition at line 10 of file SequenceVisitors.py.
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.")
def SequenceVisitors.ScheduleTaskValidator.leave |
( |
|
self, |
|
|
|
visitee |
|
) |
| |