#include <omgalgorithmset.h>
Inheritance diagram for OmgAlgorithmSet:
Definition at line 32 of file omgalgorithmset.h.
Public Member Functions | |
OmgAlgorithmSet () | |
~OmgAlgorithmSet () | |
bool | addAlgorithm (OmgAlgorithm theAlgorithm, bool theOverwriteFlag=false) |
bool | removeAlgorithm (OmgAlgorithm theAlgorithm) |
bool | removeAlgorithm (QString theAlgorithm) |
QString | name () const |
QString | description () const |
QStringList | nameList () |
void | setName (QString theName) |
void | setDescription (QString theDescription) |
void | clear () |
int | count () const |
QString | toString () |
QString | toXml () const |
bool | fromXml (const QString) |
QString | toHtml () |
void | loadAlgorithms (QString theSearchDir) |
void | saveAlgorithms (QString theSaveDir, bool theUserProfilesFlag=true) |
OmgAlgorithm | getAlgorithm (QString theGuid) |
bool | contains (QString theName) |
OmgAlgorithm | operator[] (int) |
Static Public Member Functions | |
static OmgAlgorithmSet | getFromActivePlugin () |
Private Types | |
typedef QMap< QString, OmgAlgorithm > | AlgorithmsMap |
Private Attributes | |
QString | mName |
QString | mDescription |
AlgorithmsMap | mAlgorithmsMap |
|
Definition at line 158 of file omgalgorithmset.h. |
|
Constructor . Definition at line 30 of file omgalgorithmset.cpp. |
|
Desctructor . Definition at line 34 of file omgalgorithmset.cpp. |
|
Add a algorithm to the algorithmset
Definition at line 38 of file omgalgorithmset.cpp. References mAlgorithmsMap, and OmgAlgorithm::name(). Referenced by fromXml(), OmgModellerLocalPlugin::getAlgorithmSet(), loadAlgorithms(), OmgAlgorithmManager::on_pbnApply_clicked(), and OmgAlgorithmManager::on_pbnClone_clicked(). |
Here is the call graph for this function:
|
Clear all entries from the alg set Definition at line 98 of file omgalgorithmset.cpp. References mAlgorithmsMap. Referenced by OmgAlgorithmManager::refreshAlgorithmTable(). |
|
Find out if an algorithm of a given name exists in the alg set Definition at line 139 of file omgalgorithmset.cpp. References mAlgorithmsMap. Referenced by OmgAlgorithmManager::on_pbnApply_clicked(), and OmgAlgorithmManager::on_pbnClone_clicked(). |
|
Retrun the count of algorithms in the algorithmset - excluding the mask Definition at line 102 of file omgalgorithmset.cpp. References mAlgorithmsMap. Referenced by OmgExperimentDesigner::OmgExperimentDesigner(), OmgAlgorithmManager::refreshAlgorithmTable(), and toXml(). |
|
A description for the layerset e.g. including details like hostname etc for remote services Definition at line 74 of file omgalgorithmset.cpp. References mDescription. |
|
Initialise this algorithmset from an xml representation of this AlgorithmSet
Definition at line 195 of file omgalgorithmset.cpp. References addAlgorithm(), OmgAlgorithm::fromXml(), mDescription, and mName. Referenced by OmgModellerWebServicesPlugin::getAlgorithmSet(). |
Here is the call graph for this function:
|
Get an algorithm from the set given its guid return OmgAlgorithm or 0 if not found Definition at line 124 of file omgalgorithmset.cpp. References OmgGuid::guid(), and mAlgorithmsMap. Referenced by OmgExperimentDesigner::getExperiment(), OmgAlgorithmManager::on_pbnApply_clicked(), OmgAlgorithmManager::on_pbnClone_clicked(), and OmgAlgorithmManager::selectAlgorithm(). |
Here is the call graph for this function:
|
Retirieve an algorithmset using the currently active plugin in qsettings. Definition at line 244 of file omgalgorithmset.cpp. References OmgModellerPluginInterface::getAlgorithmSet(), and OmgModellerPluginRegistry::instance(). Referenced by OmgExperimentDesigner::OmgExperimentDesigner(), OmgMainWindow::printAlgorithmProfilesReport(), and OmgAlgorithmManager::refreshAlgorithmTable(). |
Here is the call graph for this function:
|
Append any algoirthms that can be deserialised from the data directory onto this algorithm set.
Definition at line 274 of file omgalgorithmset.cpp. References addAlgorithm(), OmgSerialisable::fromXmlFile(), OmgAlgorithm::name(), and OmgAlgorithm::setOrigin(). Referenced by OmgExperimentDesigner::OmgExperimentDesigner(), OmgMainWindow::printAlgorithmProfilesReport(), and OmgAlgorithmManager::refreshAlgorithmTable(). |
Here is the call graph for this function:
|
The name of this algorithmset - in plain english Definition at line 70 of file omgalgorithmset.cpp. References mName. |
|
Helper method to return a list of all the algorithm names. Definition at line 112 of file omgalgorithmset.cpp. References mAlgorithmsMap, and OmgAlgorithm::name(). Referenced by OmgModellerWebServicesPlugin::getAlgorithmList(). |
Here is the call graph for this function:
|
Overloaded [] operator so that OmgAlgorithmSet can be treated like an array.
Definition at line 147 of file omgalgorithmset.cpp. References mAlgorithmsMap. |
|
Overloaded method to remove a algorithm from the algorithmset given only its algorithm Name. Definition at line 60 of file omgalgorithmset.cpp. References mAlgorithmsMap. |
|
Remove a algorithm from the algorithmset
Definition at line 55 of file omgalgorithmset.cpp. References mAlgorithmsMap, and OmgAlgorithm::name(). |
Here is the call graph for this function:
|
Save the algorithms in this set as individiual xml files rather than as a single file representing the set
Definition at line 315 of file omgalgorithmset.cpp. References OmgGuid::guid(), mAlgorithmsMap, OmgAlgorithm::origin(), and OmgAlgorithm::toXml(). |
Here is the call graph for this function:
|
Set a description for the algorithmset
Definition at line 87 of file omgalgorithmset.cpp. References mDescription. Referenced by OmgModellerWebServicesPlugin::getAlgorithmSet(), and OmgModellerLocalPlugin::getAlgorithmSet(). |
|
Set the algorithmSet Name
Definition at line 83 of file omgalgorithmset.cpp. References mName. Referenced by OmgModellerWebServicesPlugin::getAlgorithmSet(), and OmgModellerLocalPlugin::getAlgorithmSet(). |
|
Return an html representation of this AlgorithmSet e.g. Definition at line 181 of file omgalgorithmset.cpp. References mAlgorithmsMap, and OmgAlgorithm::toHtml(). Referenced by OmgMainWindow::printAlgorithmProfilesReport(). |
Here is the call graph for this function:
|
Return a string representation of this AlgorithmSet Definition at line 107 of file omgalgorithmset.cpp. |
|
Return an xml representation of this AlgorithmSet
Implements OmgSerialisable. Definition at line 163 of file omgalgorithmset.cpp. References count(), mAlgorithmsMap, mDescription, mName, and OmgAlgorithm::toXml(). |
Here is the call graph for this function:
|
Definition at line 159 of file omgalgorithmset.h. Referenced by addAlgorithm(), clear(), contains(), count(), getAlgorithm(), nameList(), operator[](), removeAlgorithm(), saveAlgorithms(), toHtml(), and toXml(). |
|
Definition at line 157 of file omgalgorithmset.h. Referenced by description(), fromXml(), setDescription(), and toXml(). |
|
Definition at line 156 of file omgalgorithmset.h. |