matflow.WorkflowLoop#
- class matflow.WorkflowLoop(index, workflow, template, num_added_iterations, iterable_parameters, parents)#
Bases:
WorkflowLoop
Class to represent a Loop that is bound to a Workflow.
Methods
Get loops whose task subset is a subset of this loop's task subset.
Get loops whose task subset is a superset of this loop's task subset.
Check if a loop should terminate, given the specified completed element iteration.
Attributes
Return tasks that are not part of the loop, and downstream from this loop.
Get the list of task indices that define the extent of the loop.
Return tasks that are not part of the loop, and upstream from this loop.
- Parameters:
- app = App(name='MatFlow', version='0.3.0a129')#
- property downstream_tasks: List[WorkflowLoop]#
Return tasks that are not part of the loop, and downstream from this loop.
- get_child_loops()#
Get loops whose task subset is a subset of this loop’s task subset. If two loops have identical task subsets, the first loop in the workflow loop list is considered the child.
- Return type:
- get_parent_loops()#
Get loops whose task subset is a superset of this loop’s task subset. If two loops have identical task subsets, the first loop in the workflow loop list is considered the child.
- Return type:
- property index#
- property iterable_parameters#
- property name#
- classmethod new_empty_loop(index, workflow, template, iter_loop_idx)#
- property num_added_iterations#
- property num_iterations#
- property task_insert_IDs#
- property task_objects#
- property template#
- test_termination(element_iter)#
Check if a loop should terminate, given the specified completed element iteration.
- property upstream_tasks: List[WorkflowLoop]#
Return tasks that are not part of the loop, and upstream from this loop.
- property workflow#