Package org.eclipse.emf.compare.equi
Class DefaultEquiEngine
java.lang.Object
org.eclipse.emf.compare.equi.DefaultEquiEngine
- All Implemented Interfaces:
IEquiEngine
The requirements engine is in charge of actually computing the equivalences between the differences.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkForEquivalences
(Comparison comparison, Diff difference) Checks the potential equivalence from the givendifference
.protected void
checkForEquivalences
(Comparison comparison, FeatureMapChange featureMapChange) Checks the potential equivalence from the givendifference
.protected void
checkForEquivalences
(Comparison comparison, ReferenceChange referenceChange) Checks the potential equivalence from the givendifference
.void
computeEquivalences
(Comparison comparison, Monitor monitor) This is the entry point of the equivalence computing process.
-
Constructor Details
-
DefaultEquiEngine
public DefaultEquiEngine()
-
-
Method Details
-
computeEquivalences
This is the entry point of the equivalence computing process.It will complete the input
comparison
by iterating over thedifferences
it contain, filling in the equivalence it can detect for each distinct Diff.- Specified by:
computeEquivalences
in interfaceIEquiEngine
- Parameters:
comparison
- The comparison this engine is expected to complete.monitor
- The monitor to report progress or to check for cancellation- See Also:
-
checkForEquivalences
Checks the potential equivalence from the givendifference
.- Parameters:
comparison
- The comparison this engine is expected to complete.difference
- The difference that is to be checked
-
checkForEquivalences
Checks the potential equivalence from the givendifference
.- Parameters:
comparison
- The comparison this engine is expected to complete.referenceChange
- The difference that is to be checked
-
checkForEquivalences
Checks the potential equivalence from the givendifference
.- Parameters:
comparison
- The comparison this engine is expected to complete.featureMapChange
- The difference that is to be checked- Since:
- 3.2
-