inet.common.task.MultipleTaskResults

class inet.common.task.MultipleTaskResults(multiple_tasks=None, results=[], expected_result='DONE', elapsed_wall_time=None, possible_results=['DONE', 'SKIP', 'CANCEL', 'ERROR'], possible_result_colors=[COLOR_GREEN, COLOR_CYAN, COLOR_CYAN, COLOR_RED], **kwargs)

Represents multiple task results that are created when MultipleTasks are run.

Initializes a new multiple task results object.

Parameters:
multiple_tasks=None

The original multiple tasks object that was run when this multiple task result was produced.

results=[]

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.

rerun(**kwargs)

Runs the original multiple tasks again that created this multiple task results.

Returns (MultipleTaskResults):

The multiple task results.