public class DefaultEquiEngine extends Object implements IEquiEngine
This default implementation aims at being generic enough to be used for any model, whatever the metamodel. However, specific requirements might be necessary.
TODO document available extension possibilities.Constructor and Description |
---|
DefaultEquiEngine() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForEquivalences(Comparison comparison,
Diff difference)
Checks the potential equivalence from the given
difference . |
protected void |
checkForEquivalences(Comparison comparison,
FeatureMapChange featureMapChange)
Checks the potential equivalence from the given
difference . |
protected void |
checkForEquivalences(Comparison comparison,
ReferenceChange referenceChange)
Checks the potential equivalence from the given
difference . |
void |
computeEquivalences(Comparison comparison,
Monitor monitor)
This is the entry point of the equivalence computing process.
|
public void computeEquivalences(Comparison comparison, Monitor monitor)
It will complete the input comparison
by iterating over the
differences
it contain, filling in the equivalence it can detect
for each distinct Diff.
computeEquivalences
in interface IEquiEngine
comparison
- The comparison this engine is expected to complete.monitor
- The monitor to report progress or to check for cancellationIEquiEngine.computeEquivalences(org.eclipse.emf.compare.Comparison,
org.eclipse.emf.common.util.Monitor)
protected void checkForEquivalences(Comparison comparison, Diff difference)
difference
.comparison
- The comparison this engine is expected to complete.difference
- The difference that is to be checkedprotected void checkForEquivalences(Comparison comparison, ReferenceChange referenceChange)
difference
.comparison
- The comparison this engine is expected to complete.referenceChange
- The difference that is to be checkedprotected void checkForEquivalences(Comparison comparison, FeatureMapChange featureMapChange)
difference
.comparison
- The comparison this engine is expected to complete.featureMapChange
- The difference that is to be checked
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.