Run the slave command on the slave processor
This is a base method which must be overridden.
The run command must return at least one Result_command even if
it is a processor.NULL_RESULT. Results are returned from the
Slave_command to the master processor using the return_object method of
the processor passed to the command. Any exceptions raised will be caught
wrapped and returned to the master processor by the slave processor.
- Parameters:
processor (Processor instance) - The slave processor the command is running on. Results from the
command are returned via calls to processor.return_object.
completed (bool) - The flag used in batching result returns to indicate that the
sequence of batched result commands has completed. This value
should be returned via the last result object retuned by this
method or methods it calls. All other Result_commands should be
initialised with completed=False. This is an optimisation to
prevent the sending an extra batched result queue completion
result command being sent, it may be an over early optimisation.
|