Package multi :: Module result_commands :: Class Batched_result_command
[hide private]
[frames] | no frames]

Class Batched_result_command

source code


Instance Methods [hide private]
 
__init__(self, processor, result_commands, io_data=None, completed=True)
Initialise a result.
source code
 
run(self, processor, batched_memo)
The results command to be run by the master.
source code

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

Instance Variables [hide private]

Inherited from misc.Result: completed, memo_id, rank

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, processor, result_commands, io_data=None, completed=True)
(Constructor)

source code 

Initialise a result.

This object is designed for subclassing and __init__ should be called via the super() function.

Parameters:
  • processor - Processor the processor instance we are running in.
  • completed - A flag used in batching result returns to indicate that the sequence of batched result commands has completed, the flag should be set by slave_commands. The value should be the value passed to a Slave_commands run method if it is the final result being returned otherwise it should be False.
Overrides: object.__init__
(inherited documentation)

run(self, processor, batched_memo)

source code 

The results command to be run by the master.

Parameters:
  • processor (Processor instance) - The processor instance.
  • batched_memo (Memo instance) - The batched memo object.
Overrides: Result_command.run