Package pajammin :: Package ai :: Package script :: Module script :: Class DoFirst
[show private | hide private]
[frames | no frames]

Class DoFirst

TaskResult --+
             |
            DoFirst


The task can't be completed yet; perform the given list of subtasks first, and then try the task again. If any of the subtasks fails, then the remaining subtasks will be skipped and the task's recover method will be called.
Method Summary
  __init__(self, *subtasks, **kwargs)
  __repr__(self)

Method Details

__init__(self, *subtasks, **kwargs)
(Constructor)

Parameters:
subtasks - The list of subtasks to perform.
Keyword Parameters:
interrupts - A list of conditions that should generate interrupts. If one of these conditions becomes true, then the remaining subtasks will be skipped and the parent task will be immediately notified (via the interrupt() method).

__repr__(self)
(Representation operator)