|
| enum | TOOLSTATUS {
TOOL_READY
, TOOL_SCHEDULED
, TOOL_RUNNING
, TOOL_SUCCESS
,
TOOL_CRASH
, TOOLSTATUS_SIZE
} |
| | current status of the vertex More...
|
| |
| enum | DFS_COLOR { DFS_WHITE
, DFS_GRAY
, DFS_BLACK
} |
| | The color of a vertex during depth-first search. More...
|
| |
| enum | SUBSTREESTATUS { TV_ALLFINISHED
, TV_UNFINISHED
, TV_UNFINISHED_INBRANCH
} |
| | The color of a vertex during depth-first search. More...
|
| |
| typedef QList< TOPPASEdge * > | EdgeContainer |
| | The container for in/out edges.
|
| |
| typedef EdgeContainer::iterator | EdgeIterator |
| | A mutable iterator for in/out edges.
|
| |
| typedef EdgeContainer::const_iterator | ConstEdgeIterator |
| | A const iterator for in/out edges.
|
| |
| using | RoundPackage = std::map< Int, VertexRoundPackage > |
| |
| using | RoundPackageConstIt = RoundPackage::const_iterator |
| |
| using | RoundPackageIt = RoundPackage::iterator |
| |
| using | RoundPackages = std::vector< RoundPackage > |
| | all information a node needs to process all rounds
|
| |
|
| void | toolStarted () |
| | Emitted when the tool is started.
|
| |
| void | toolFinished () |
| | Emitted when the tool is finished.
|
| |
| void | toolCrashed () |
| | Emitted when the tool crashes.
|
| |
| void | toolFailed (int return_code=-1, const QString &message="") |
| | Emitted when the tool execution fails.
|
| |
| void | toppOutputReady (const QString &out) |
| | Emitted from forwardTOPPOutput() to forward the signal outside.
|
| |
| void | clicked () |
| | Emitted when this item is clicked.
|
| |
| void | released () |
| | Emitted when this item is released.
|
| |
| void | hoveringEdgePosChanged (const QPointF &new_pos) |
| | Emitted when the position of the hovering edge changes.
|
| |
| void | newHoveringEdge (const QPointF &pos) |
| | Emitted when a new out edge is supposed to be created.
|
| |
| void | finishHoveringEdge () |
| | Emitted when the mouse is released after having dragged a new edge somewhere.
|
| |
| void | somethingHasChanged () |
| | Emitted when something has changed.
|
| |
| void | itemDragged (qreal dx, qreal dy) |
| | Emitted when the item is dragged.
|
| |
| void | parameterChanged (const bool invalidates_running_pipeline) |
| |
|
| | TOPPASToolVertex () |
| | Default constructor.
|
| |
| | TOPPASToolVertex (const String &name, const String &type="") |
| | Constructor.
|
| |
| | TOPPASToolVertex (const TOPPASToolVertex &rhs) |
| | Copy constructor.
|
| |
| | ~TOPPASToolVertex () override=default |
| | Destructor.
|
| |
| TOPPASToolVertex & | operator= (const TOPPASToolVertex &rhs) |
| | Assignment operator.
|
| |
| virtual std::unique_ptr< TOPPASVertex > | clone () const override |
| | Make a copy of this vertex on the heap and return a pointer to it (useful for copying nodes)
|
| |
| String | getName () const override |
| | returns the name of the TOPP tool
|
| |
| const String & | getType () const |
| | Returns the type of the tool.
|
| |
| QVector< IOInfo > | getInputParameters () const |
| | Returns input file/list parameters together with their valid types.
|
| |
| QVector< IOInfo > | getOutputParameters () const |
| | Returns output file/list/dir parameters together with their valid types.
|
| |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| |
| QRectF | boundingRect () const override |
| | Returns the bounding rectangle of this item.
|
| |
| void | setTopoNr (UInt nr) override |
| | Sets the topological sort number (overridden in tool and output vertices)
|
| |
| void | reset (bool reset_all_files=false) override |
| |
| void | setParam (const Param ¶m) |
| | Sets the Param object of this tool.
|
| |
| const Param & | getParam () |
| | Returns the Param object of this tool.
|
| |
| void | run () override |
| | Checks if all parent nodes have finished the tool execution and, if so, runs the tool.
|
| |
| bool | updateCurrentOutputFileNames (const RoundPackages &pkg, String &error_message) |
| |
| TOOLSTATUS | getStatus () const |
| | return if tool failed or is ready etc.
|
| |
| void | editParam () |
| | Lets the user edit the parameters of the tool.
|
| |
| int | numIterations () |
| | Returns the number of iterations this tool has to perform.
|
| |
| String | getFullOutputDirectory () const |
| | Returns the full directory (including preceding tmp path)
|
| |
| String | getOutputDir () const |
| | Returns the directory where this tool stores its output files.
|
| |
| void | createDirs () |
| | Creates all necessary directories.
|
| |
| void | openContainingFolder () const |
| | Opens the folder where the file is contained.
|
| |
| void | openInTOPPView () |
| | Opens the files in TOPPView.
|
| |
| bool | refreshParameters () |
| | Refreshes the parameters of this tool, returns if their has been a change.
|
| |
| bool | isToolReady () const |
| | underlying TOPP tool found and parameters fetched?! (done in C'Tor)
|
| |
| void | toggleBreakpoint () |
| | Toggle breakpoint.
|
| |
| virtual void | emitToolStarted () |
| | Called when the QProcess in the queue is called: emits 'toolStarted()'.
|
| |
| bool | invertRecylingMode () override |
| | invert status of recycling (overriding base class)
|
| |
| | TOPPASVertex () |
| | Default Constructor.
|
| |
| | TOPPASVertex (const TOPPASVertex &rhs) |
| | Copy constructor.
|
| |
| | ~TOPPASVertex () override=default |
| | Destructor.
|
| |
| TOPPASVertex & | operator= (const TOPPASVertex &rhs) |
| | Assignment operator.
|
| |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *, bool round_shape=true) |
| | base paint method for all derived classes. should be called first in child-class paint
|
| |
| bool | buildRoundPackages (RoundPackages &pkg, String &error_msg) |
| |
| bool | isUpstreamFinished () const |
| | check if all upstream nodes are ready to go ( 'finished_' is true)
|
| |
| QPainterPath | shape () const final |
| | Returns a more precise shape.
|
| |
| ConstEdgeIterator | outEdgesBegin () const |
| | Returns begin() iterator of outgoing edges.
|
| |
| ConstEdgeIterator | outEdgesEnd () const |
| | Returns end() iterator of outgoing edges.
|
| |
| ConstEdgeIterator | inEdgesBegin () const |
| | Returns begin() iterator of incoming edges.
|
| |
| ConstEdgeIterator | inEdgesEnd () const |
| | Returns end() iterator of incoming edges.
|
| |
| Size | incomingEdgesCount () |
| | Returns the number of incoming edges.
|
| |
| Size | outgoingEdgesCount () |
| | Returns the number of outgoing edges.
|
| |
| void | addInEdge (TOPPASEdge *edge) |
| | Adds an incoming edge.
|
| |
| void | addOutEdge (TOPPASEdge *edge) |
| | Adds an outgoing edge.
|
| |
| void | removeInEdge (TOPPASEdge *edge) |
| | Removes an incoming edge.
|
| |
| void | removeOutEdge (TOPPASEdge *edge) |
| | Removes an outgoing edge.
|
| |
| DFS_COLOR | getDFSColor () |
| | Returns the DFS color of this node.
|
| |
| void | setDFSColor (DFS_COLOR color) |
| | Sets the DFS color of this node.
|
| |
| TOPPASVertex::SUBSTREESTATUS | getSubtreeStatus () const |
| | Checks if all tools in the subtree below this node are finished.
|
| |
| bool | isTopoSortMarked () const |
| | Returns whether the vertex has been marked already (during topological sort)
|
| |
| void | setTopoSortMarked (bool b) |
| | (Un)marks the vertex (during topological sort)
|
| |
| UInt | getTopoNr () const |
| | Returns the topological sort number.
|
| |
| virtual void | markUnreachable () |
| | Marks this node (and everything further downstream) as unreachable. Overridden behavior in mergers.
|
| |
| bool | isReachable () const |
| | Returns whether this node is reachable.
|
| |
| bool | isFinished () const |
| | Returns whether this node has already been processed during the current pipeline execution.
|
| |
| bool | isRecyclingEnabled () const |
| | get status of recycling
|
| |
| void | setRecycling (const bool is_enabled) |
| | set status of recycling
|
| |
| QStringList | getFileNames (int param_index, int round) const |
| | gets filenames for a certain output parameter (from this vertex), for a certain TOPPAS round
|
| |
| QStringList | getFileNames () const |
| | get all output files for all parameters for all rounds
|
| |
| const RoundPackages & | getOutputFiles () const |
| |
| bool | allInputsReady () const |
| | check if all upstream nodes are finished
|
| |
|
| String | name_ |
| | The name of the tool.
|
| |
| String | type_ |
| | The type of the tool, or "" if it does not have a type.
|
| |
| String | tmp_path_ |
| | The temporary path.
|
| |
| Param | param_ |
| | The parameters of the tool.
|
| |
| TOOLSTATUS | status_ {TOOL_READY} |
| | current status of the tool
|
| |
| bool | tool_ready_ {true} |
| | tool initialization status: if C'tor was successful in finding the TOPP tool, this is set to 'true'
|
| |
| bool | breakpoint_set_ {false} |
| | Breakpoint set?
|
| |
| void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *e) override |
| |
| TOPPASScene * | getScene_ () const |
| | get parent Scene
|
| |
| bool | doesParamChangeInvalidate_ () |
| | determines if according to current status_, a parameter change would invalidate the pipeline status (e.g., because this node was already processed)
|
| |
| bool | renameOutput_ () |
| | renames SUFFICES of the output files created by the TOPP tool by inspecting file content
|
| |
| bool | initParam_ (const QString &old_ini_file="") |
| | Initializes the parameters with standard values (from -write_ini), uses the parameters from the old_ini_file if given, returns if parameters have changed (if old_ini_file was given)
|
| |
| QVector< IOInfo > | getParameters_ (bool input_params) const |
| | returns input/output file/list parameters. If input_params is true, input params are returned, otherwise output params.
|
| |
| void | writeParam_ (const Param ¶m, const QString &ini_file) |
| | Writes param to the ini_file.
|
| |
| QString | toolnameWithWhitespacesForFancyWordWrapping_ (QPainter *painter, const QString &str) |
| | Helper method for finding good boundaries for wrapping the tool name. Returns a string with whitespaces at the preferred boundaries.
|
| |
| void | smartFileNames_ (std::vector< QStringList > &filenames) |
| |
A vertex representing a TOPP tool.
Besides TOPPASScene, this class contains most of the remaining functionality of TOPPAS regarding the execution of pipelines. Once a pipeline run is started from TOPPASScene, the execution is propagated from tool to tool and the TOPP tools are actually called from here.