Workspace 6.21.5
|
Contains all of the neccesary information to describe the differences between an operation's instances in two different workflows. More...
#include <Tools/WorkflowComparison/operationdifference.h>
Public Member Functions | |
OperationDifference () | |
OperationDifference (const OperationDifference &other) | |
~OperationDifference () override | |
size_t | addAnchorDifference (const AnchorDifference &anchorDifference) |
size_t | addConnectionDifference (const ConnectionDifference &connectionDifference) |
size_t | addDifference (const ElementDifference &difference) |
size_t | addDisplayDifference (const DisplayDifference &displayDifference) |
size_t | addFeatureDifference (const FeatureDifference &featureDifference) |
size_t | addInputDifference (const InputDifference &inputDifference) |
size_t | addNoteDifference (const NoteDifference ¬eDifference) |
size_t | addOutputDifference (const OutputDifference &outputDifference) |
size_t | addPluginDifference (const PluginDifference &pluginDifference) |
size_t | addToOperationDifference (OperationDifference &opDiff) const override |
size_t | addViewDifference (const ViewDifference &viewDifference) |
OperationDifference * | clone () const override |
const CSIRO::DataExecution::ObjectArray & | getAnchorDifferenceArray () const |
const CSIRO::DataExecution::ObjectArray & | getConnectionDifferenceArray () const |
QList< const CSIRO::DataExecution::ObjectArray * > | getDifferencesAsList () const |
const CSIRO::DataExecution::ObjectArray & | getDisplayDifferenceArray () const |
const CSIRO::DataExecution::ObjectArray & | getFeatureDifferenceArray () const |
const QString & | getGUID () const |
const CSIRO::DataExecution::ObjectArray & | getInputDifferenceArray () const |
const QString & | getLabelIn (ComparisonRole workflow) const |
const QString & | getLabelInA () const |
const QString & | getLabelInB () const |
CSIRO::DataExecution::ObjectArray & | getNoteDifferenceArray () |
const CSIRO::DataExecution::ObjectArray & | getNoteDifferenceArray () const |
const QString & | getOperationType () const |
const CSIRO::DataExecution::ObjectArray & | getOutputDifferenceArray () const |
const CSIRO::DataExecution::ObjectArray & | getPluginDifferenceArray () const |
const QString & | getPluginName () const |
const QString & | getSourceInA () const |
const QString & | getSourceInB () const |
const CSIRO::DataExecution::ObjectArray & | getViewDifferenceArray () const |
bool | hasSignificantDifference (bool includeViews) const |
Returns true if any of the auxilliary arrays is non-empty (connectionDiffereneArray for example). If includeViews is set to false, then changes to operation position are ignored. | |
OperationDifference & | operator= (const OperationDifference &rhs) |
bool | operator== (const OperationDifference &rhs) const |
void | setAnchorDifferenceArray (const CSIRO::DataExecution::ObjectArray &anchorDifferenceArray) |
void | setConnectionDifferenceArray (const CSIRO::DataExecution::ObjectArray &connectionDifferenceArray) |
void | setDisplayDifferenceArray (const CSIRO::DataExecution::ObjectArray &displayDifferenceArray) |
void | setFeatureDifferenceArray (const CSIRO::DataExecution::ObjectArray &featureDifferenceArray) |
void | setGUID (const QString &guid) |
void | setInputDifferenceArray (const CSIRO::DataExecution::ObjectArray &inputDifferenceArray) |
void | setLabelInA (const QString &labelInA) |
void | setLabelInB (const QString &labelInB) |
void | setNoteDifferenceArray (const CSIRO::DataExecution::ObjectArray ¬eDifferenceArray) |
void | setOperationType (const QString &operationType) |
void | setOutputDifferenceArray (const CSIRO::DataExecution::ObjectArray &outputDifferenceArray) |
void | setPluginDifferenceArray (const CSIRO::DataExecution::ObjectArray &pluginDifferenceArray) |
void | setPluginName (const QString &pluginName) |
void | setSourceInA (const QString &sourceInA) |
void | setSourceInB (const QString &sourceInB) |
void | setViewDifferenceArray (const CSIRO::DataExecution::ObjectArray &viewDifferenceArray) |
QString | toString () const override |
Public Member Functions inherited from ElementDifference | |
ElementDifference (const ElementDifference &other) | |
ElementDifference (const QString &type="UnknownType") | |
~ElementDifference () override | |
AttributeDifference & | addAttributeDifference (const AttributeDifference &attributeDifference) |
virtual size_t | addToOperationDifference (OperationDifference &opDiff) const |
ElementDifference * | clone () const override |
const CSIRO::DataExecution::ObjectArray & | getAttributeDifferenceArray () const |
ElementDifference & | operator= (const ElementDifference &rhs) |
bool | operator== (const ElementDifference &rhs) const |
void | setAttributeDifferenceArray (const CSIRO::DataExecution::ObjectArray &attributes) |
const QString & | tag () |
Public Member Functions inherited from ItemDifference | |
ItemDifference () | |
ItemDifference (const ItemDifference &other) | |
~ItemDifference () override | |
ItemDifference * | clone () const override |
const QString & | getItemType () const |
bool | getPresentIn (ComparisonRole workflow) const |
const bool & | getPresentInA () const |
const bool & | getPresentInB () const |
bool | getSuppressAnnotationIn (ComparisonRole workflow) const |
const bool & | getSuppressAnnotationInA () const |
const bool & | getSuppressAnnotationInB () const |
bool | getUpdatedIn (ComparisonRole workflow) const |
const bool & | getUpdatedInA () const |
const bool & | getUpdatedInB () const |
ItemDifference & | operator= (const ItemDifference &rhs) |
bool | operator== (const ItemDifference &rhs) const |
void | setItemType (const QString &itemType) |
void | setPresentInA (const bool &presentInA) |
void | setPresentInB (const bool &presentInB) |
void | setSuppressAnnotation (const bool &updatedIn, ComparisonRole workflow) |
void | setSuppressAnnotationInA (const bool &updatedInA) |
void | setSuppressAnnotationInB (const bool &updatedInB) |
void | setUpdated (const bool &updatedIn, ComparisonRole workflow) |
void | setUpdatedInA (const bool &updatedInA) |
void | setUpdatedInB (const bool &updatedInB) |
virtual QString | toString () const |
Public Member Functions inherited from ObjectGroup | |
~ObjectGroup () override | |
bool | add (const QString &name, DataObject &obj) |
bool | canSerialize () const override |
ObjectGroup * | clone () const override=0 |
bool | empty () const |
void | ensureGroupHasData () |
void | erase (int index) |
DataObject * | getChild (const QString &name) |
const DataObject * | getChild (const QString &name) const |
DataObject & | getDataObject (int index) |
const DataObject & | getDataObject (int index) const |
int | getIndex (const QString &name) const |
const QString & | getName (int index) const |
virtual QString | getPreferedWidget (const QString &name) const |
bool | hasData () const |
bool | haveName (const QString &name) const |
bool | insert (const QString &name, DataObject &obj, int index=-1) |
bool | load (const QJsonDocument &doc) |
bool | load (const SerializedItem &item) override |
bool | save (QJsonDocument &doc) const |
bool | save (SerializedItem &item) const override |
unsigned | size () const |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Public Member Functions inherited from Serialize | |
virtual | ~Serialize ()=default |
virtual bool | canSerialize () const =0 |
virtual bool | load (const SerializedItem &item)=0 |
virtual bool | save (SerializedItem &item) const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from ObjectGroup | |
ObjectGroup () | |
void | clear () |
ObjectGroup & | operator= (const ObjectGroup &rhs) |
bool | operator== (const ObjectGroup &rhs) const |
void | swap (ObjectGroup &rhs) |
Operation instances are considered to correspond to each other if their ids (GUIDs) are identical.
OperationDifference | ( | const OperationDifference & | other | ) |
|
overridedefault |
size_t addAnchorDifference | ( | const AnchorDifference & | anchorDifference | ) |
size_t addConnectionDifference | ( | const ConnectionDifference & | connectionDifference | ) |
size_t addDifference | ( | const ElementDifference & | difference | ) |
size_t addDisplayDifference | ( | const DisplayDifference & | displayDifference | ) |
size_t addFeatureDifference | ( | const FeatureDifference & | featureDifference | ) |
size_t addInputDifference | ( | const InputDifference & | inputDifference | ) |
size_t addNoteDifference | ( | const NoteDifference & | noteDifference | ) |
size_t addOutputDifference | ( | const OutputDifference & | outputDifference | ) |
size_t addPluginDifference | ( | const PluginDifference & | pluginDifference | ) |
|
overridevirtual |
Reimplemented from ElementDifference.
size_t addViewDifference | ( | const ViewDifference & | viewDifference | ) |
|
overridevirtual |
Cloning
Reimplemented from ElementDifference.
const CSIRO::DataExecution::ObjectArray & getAnchorDifferenceArray | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getConnectionDifferenceArray | ( | ) | const |
QList< const CSIRO::DataExecution::ObjectArray * > getDifferencesAsList | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getDisplayDifferenceArray | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getFeatureDifferenceArray | ( | ) | const |
const QString & getGUID | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getInputDifferenceArray | ( | ) | const |
const QString & getLabelIn | ( | ComparisonRole | workflow | ) | const |
const QString & getLabelInA | ( | ) | const |
const QString & getLabelInB | ( | ) | const |
CSIRO::DataExecution::ObjectArray & getNoteDifferenceArray | ( | ) |
const CSIRO::DataExecution::ObjectArray & getNoteDifferenceArray | ( | ) | const |
const QString & getOperationType | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getOutputDifferenceArray | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getPluginDifferenceArray | ( | ) | const |
const QString & getPluginName | ( | ) | const |
const QString & getSourceInA | ( | ) | const |
const QString & getSourceInB | ( | ) | const |
const CSIRO::DataExecution::ObjectArray & getViewDifferenceArray | ( | ) | const |
bool hasSignificantDifference | ( | bool | includeViews | ) | const |
OperationDifference & operator= | ( | const OperationDifference & | rhs | ) |
Assignment
bool operator== | ( | const OperationDifference & | rhs | ) | const |
Comparison
void setAnchorDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | anchorDifferenceArray | ) |
void setConnectionDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | connectionDifferenceArray | ) |
void setDisplayDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | displayDifferenceArray | ) |
void setFeatureDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | featureDifferenceArray | ) |
void setGUID | ( | const QString & | guid | ) |
void setInputDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | inputDifferenceArray | ) |
void setLabelInA | ( | const QString & | labelInA | ) |
void setLabelInB | ( | const QString & | labelInB | ) |
void setNoteDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | noteDifferenceArray | ) |
void setOperationType | ( | const QString & | operationType | ) |
void setOutputDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | outputDifferenceArray | ) |
void setPluginDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | pluginDifferenceArray | ) |
void setPluginName | ( | const QString & | pluginName | ) |
void setSourceInA | ( | const QString & | sourceInA | ) |
void setSourceInB | ( | const QString & | sourceInB | ) |
void setViewDifferenceArray | ( | const CSIRO::DataExecution::ObjectArray & | viewDifferenceArray | ) |
|
overridevirtual |
Reimplemented from ItemDifference.