#include <Tools/WorkflowComparison/differenceprocessor.h>
|
int | createGhostAnchors (const DataExecution::ObjectArray &anchorDifferences, DataExecution::Workspace &workspace, ComparisonRole desc) const |
|
int | createGhostConnections (const DataExecution::ObjectArray &operationDifferences, DataExecution::Workspace &workspace) const |
|
int | createGhostInputs (const DataExecution::ObjectArray &inputDifferences, DataExecution::Operation &operation, ComparisonRole desc) const |
|
int | createGhostNotes (const DataExecution::ObjectArray ¬eDifferences, DataExecution::Workspace &workspace, ComparisonRole desc) const |
|
DataExecution::Operation & | createGhostOperation (const DataExecution::Operation &altOp, DataExecution::Workspace &workspace) const |
|
int | createGhostOutputs (const DataExecution::ObjectArray &outputDifferences, DataExecution::Operation &operation, ComparisonRole desc) const |
|
◆ DifferenceProcessor()
◆ createGhostAnchors()
- Parameters
-
anchorDifferences | Array of differences between anchors in a pair of workspaces in two different workflows. |
workspace | The workspace onto which to add anchors that do not exist. |
desc | The workflow descriptor indicating whether workspace is taking the role of workflow A or workflow B in the comparison |
- Returns
- The number of anchors created.
◆ createGhostConnections()
- Parameters
-
operationDifferences | Array of differences between a set of operations in two different workflows. |
workspace | The workspace containing some of the operations referenced in the differences array. |
- Returns
- The number of connections created.
◆ createGhostInputs()
- Parameters
-
inputDifferences | Array of differences between inputs in two different workflows. |
operation | The operation onto which to add inputs that do not exist. |
desc | The workflow descriptor indicating whether workspace is taking the role of workflow A or workflow B in the comparison |
- Returns
- The number of inputs created.
◆ createGhostNotes()
- Parameters
-
noteDifferences | Array of differences between notes in a pair of workspaces in two different workflows. |
workspace | The workspace into which to add notes that do not exist. |
desc | The workflow descriptor indicating whether workspace is taking the role of workflow A or workflow B in the comparison |
- Returns
- The number of notes created.
◆ createGhostOperation()
- Parameters
-
altOp | The original operation (which exists in the alternate workflow) for which a ghost operation is required in workspace. |
workspace | The workspace in which to create the new ghost operation. |
Creates a ghost operation; a Placeholder clone of the specified operation with exactly the same inputs / outputs.
◆ createGhostOutputs()
- Parameters
-
outputDifferences | Array of differences between outputs in two different workflows. |
operation | The operation onto which to add outputs that do not exist. |
desc | The workflow descriptor indicating whether workspace is taking the role of workflow A or workflow B in the comparison |
- Returns
- The number of outputs created.
◆ findOperation()
Looks for an operation given a target uuid and a parent workspace. The workspace is searched recursively
If the operation is found, then the workspace is updated to hold the direct parent workspace of the operation
- Parameters
-
guid | The Uuid of the target operation |
operation | Operation address returned (if found) |
workspace | Parent workspace. Set this to a top-level workspace that should |
- Returns
- true if the operation is found
◆ findWorkspace()
◆ processDifferences()
Now that we've created any and all ghost operations, we can look for missing connections. There are two ways missing connections will be identified:
- Where there are connection differences recorded
- Where ghost operations are created. No connection differences will be recorded in this case, because the specific operation the connection differences are stored against is not present in this workflow.