exopy.tasks.tasks.logic.loop_task module¶
Task allowing to perform a loop. The iterable is given by an interface.
-
class
exopy.tasks.tasks.logic.loop_task.
LoopTask
[source]¶ Bases:
exopy.tasks.tasks.task_interface.InterfaceableTaskMixin
,exopy.tasks.tasks.base_tasks.ComplexTask
Complex task which, at each iteration, call all its child tasks.
-
timing
¶ Flag indicating whether or not to time the loop.
-
task
¶ Task to call before other child tasks with current loop value. This task is simply a convenience and can be set to None.
-
database_entries
¶ A value of type dict.
-
perform_loop
(iterable)[source]¶ Perform the loop on the iterable calling all child tasks at each iteration.
This method shoulf be called by the interface at the appropriate time.
- Parameters
iterable (iterable) – Iterable on which the loop should be performed.
-
interface
¶ A Typed which delays resolving the type definition.
The first time the value is accessed or modified, the type will be resolved and the forward typed will behave identically to a normal typed.
-
name
¶ A value of type unicode.
By default, plain strings will be promoted to unicode strings. Pass strict=True to the constructor to enable strict unicode checking.
-