MultipleTaskResults¶
from inet.common.task
- class MultipleTaskResults(multiple_tasks=None, results=[], expected_result='DONE', elapsed_wall_time=None, possible_results=['DONE', 'SKIP', 'CANCEL', 'ERROR'], possible_result_colors=['\x1b[0;32m', '\x1b[0;36m', '\x1b[0;36m', '\x1b[1;31m'], **kwargs)[source]¶
Bases:
object
Represents multiple task results that are created when
MultipleTasks
are run.Initializes a new multiple task results object.
- Parameters
multiple_tasks (
MultipleTasks
) – The original multiple tasks object that was run when this multiple task result was produced.results (List of
TaskResult
) – The list of individual task results corresponding to the individual tasks.expected_result="DONE" (string) – The expected result of the multiple task execution. The value must be one of the values in the possible_results attribute.
elapsed_wall_time (number) – The elapsed time while the task was running.
possible_results (List of string) – The list of possible results with which the execution of the original multiple task can end.
possible_result_colors (List of string) – The list of colors for the corresponding possible results.
Methods
Runs the original multiple tasks again that created this multiple task results.
Attributes
- rerun(**kwargs)[source]¶
Runs the original multiple tasks again that created this multiple task results.
- Returns (
MultipleTaskResults
): The multiple task results.
- Returns (