Package mdp :: Package parallel :: Class ListResultContainer
[hide private]
[frames] | no frames]

Class ListResultContainer


Basic result container using simply a list.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
add_result(self, result, task_index)
Store a result in the container.
 
get_results(self)
Return the list of results and reset this container.

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

add_result(self, result, task_index)

 
Store a result in the container.

Overrides: ResultContainer.add_result

get_results(self)

 
Return the list of results and reset this container.

Note that the results are stored in the order that they come in, which
can be different from the orginal task order.

Overrides: ResultContainer.get_results