|
Mantid
|
#include <TaskBasedAlgorithm.h>
Public Member Functions | |
| size_t | addDependantTaskSet () |
| AlgorithmTask (T *parent, const std::string &name) | |
| void | clear () |
| void | execute () |
| const std::vector< std::string > & | getExpectedOutputs () const |
| const std::string & | getSelectedOutput () const |
| void | initAsFirstTask (std::shared_ptr< MatrixWorkspace > inputWS) |
| const std::string & | name () const |
| void | setDependantTask (const std::string &task, const std::string &output_name="", const std::string &alias="", const size_t dependantTaskSet=0) |
| void | setExpectedOutputs (const std::vector< std::string > &expectedOutputs) |
| void | setTaskExecutionOrder (const std::vector< std::string > *taskExecutionOrder) |
Protected Member Functions | |
| std::shared_ptr< MatrixWorkspace > | getDependantWorkspace (const std::string &outputAlias) |
| void | outputWorkspace (std::shared_ptr< MatrixWorkspace > ws, const std::string &outputName) |
| void | setSelectedOutput (const std::string &output, const bool overwrite=false) |
Protected Attributes | |
| T * | m_parent |
Private Member Functions | |
| void | activateTaskSet () |
| void | addDependantTaskOutput (const std::string &outputName, std::shared_ptr< MatrixWorkspace > ws, const size_t taskSetIndex) |
| void | checkExpectedOutputs () |
| std::vector< std::string > | evaluateDependentTasks () |
| virtual void | executeImpl ()=0 |
| std::string | populateDependantTasks (const size_t taskSetIndex) |
Private Attributes | |
| size_t | m_activeDependantTaskSet |
| std::vector< std::unordered_map< std::string, std::shared_ptr< MatrixWorkspace > > > | m_dependantOutputs |
| std::vector< std::unordered_map< std::string, std::vector< std::pair< std::string, std::string > > > > | m_dependantTasks |
| std::vector< std::string > | m_expectedOutputs |
| bool | m_firstTaskFlag |
| std::vector< size_t > | m_fulfilledDependantTaskSets |
| std::string | m_name |
| std::string | m_selectedOutput |
| const std::vector< std::string > * | m_taskExecutionOrder = nullptr |
Definition at line 28 of file TaskBasedAlgorithm.h.
|
inlineexplicit |
Definition at line 30 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::addDependantTaskSet().
|
inlineprivate |
Definition at line 131 of file TaskBasedAlgorithm.h.
References index, and Mantid::API::TaskBasedAlgorithm< T >::m_taskExecutionOrder.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::execute().
|
inlineprivate |
Definition at line 219 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::initAsFirstTask().
|
inline |
Definition at line 34 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_dependantOutputs, and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_dependantTasks.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::AlgorithmTask().
|
inlineprivate |
Definition at line 161 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::execute().
|
inline |
Definition at line 77 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_fulfilledDependantTaskSets.
|
inlineprivate |
Definition at line 177 of file TaskBasedAlgorithm.h.
References std::to_string().
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::execute().
|
inline |
Definition at line 52 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::activateTaskSet(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::checkExpectedOutputs(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::evaluateDependentTasks(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::executeImpl(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_name, and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_parent.
|
privatepure virtual |
|
inlineprotected |
Definition at line 86 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_activeDependantTaskSet, and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_dependantOutputs.
|
inline |
Definition at line 66 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_expectedOutputs.
|
inline |
Definition at line 76 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_selectedOutput.
|
inline |
Definition at line 69 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::addDependantTaskOutput(), and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_firstTaskFlag.
|
inline |
Definition at line 68 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_name.
|
inlineprotected |
|
inlineprivate |
Definition at line 113 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_dependantTasks, and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_parent.
|
inline |
Definition at line 39 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_dependantTasks, Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_name, and std::to_string().
|
inline |
Definition at line 67 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_expectedOutputs.
|
inlineprotected |
Definition at line 90 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_selectedOutput.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::outputWorkspace().
|
inline |
Definition at line 73 of file TaskBasedAlgorithm.h.
References Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::m_taskExecutionOrder.
|
private |
Definition at line 104 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::getDependantWorkspace().
|
private |
Definition at line 102 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::addDependantTaskSet(), and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::getDependantWorkspace().
|
private |
|
private |
Definition at line 101 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::getExpectedOutputs(), and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::setExpectedOutputs().
|
private |
Definition at line 103 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::initAsFirstTask().
|
private |
Definition at line 105 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::clear().
|
private |
Definition at line 100 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::execute(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::name(), Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::outputWorkspace(), and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::setDependantTask().
|
protected |
|
private |
Definition at line 107 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::getSelectedOutput(), and Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::setSelectedOutput().
|
private |
Definition at line 106 of file TaskBasedAlgorithm.h.
Referenced by Mantid::API::TaskBasedAlgorithm< T >::AlgorithmTask::setTaskExecutionOrder().