19 qRegisterMetaType<API::IConfiguredAlgorithm_sptr>(
"MantidQt::API::IConfiguredAlgorithm_sptr");
void setQueue(std::deque< IConfiguredAlgorithm_sptr > algorithm)
Set the queue of algorithms.
void stopOnFailure(bool stopOnFailure)
Sets if the execuion should be stopped if an error is detected.
void cancelBatch()
Request to cancel processing the batch.
void executeAlgorithmAsync(IConfiguredAlgorithm_sptr algorithm)
Starts a single algorithm and returns immediately.
void executeBatchAsync()
Starts the batch executing and returns immediately.
void clearQueue()
Clears all algorithms from queue.
JobRunnerSubscriber is an interface to a class that subscribes to notifications from an IJobRunner.
virtual void notifyBatchCancelled()=0
virtual void notifyBatchComplete(bool error)=0
virtual void notifyAlgorithmComplete(API::IConfiguredAlgorithm_sptr &algorithm)=0
virtual void notifyAlgorithmStarted(API::IConfiguredAlgorithm_sptr &algorithm)=0
virtual void notifyAlgorithmError(API::IConfiguredAlgorithm_sptr &algorithm, std::string const &message)=0
MantidQt::API::BatchAlgorithmRunner m_batchAlgoRunner
void onAlgorithmError(MantidQt::API::IConfiguredAlgorithm_sptr algorithm, const std::string &errorMessage)
void setAlgorithmQueue(std::deque< MantidQt::API::IConfiguredAlgorithm_sptr > algorithms) override
void onBatchComplete(bool error)
QtJobRunner(bool const stopOnFailure=false)
void onAlgorithmStarted(MantidQt::API::IConfiguredAlgorithm_sptr algorithm)
void executeAlgorithm(MantidQt::API::IConfiguredAlgorithm_sptr algorithm) override
void clearAlgorithmQueue() override
void connectBatchAlgoRunnerSlots()
JobRunnerSubscriber * m_notifyee
void cancelAlgorithmQueue() override
void subscribe(JobRunnerSubscriber *notifyee) override
void onAlgorithmComplete(MantidQt::API::IConfiguredAlgorithm_sptr algorithm)
void executeAlgorithmQueue() override
std::shared_ptr< IConfiguredAlgorithm > IConfiguredAlgorithm_sptr