Class EcoreWeightProvider
java.lang.Object
org.eclipse.emf.compare.match.eobject.AbstractWeightProvider
org.eclipse.emf.compare.match.eobject.DefaultWeightProvider
org.eclipse.emf.compare.match.eobject.EcoreWeightProvider
- All Implemented Interfaces:
WeightProvider
The implementation of
WeightProvider applicable to all ecore
objects.- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.match.eobject.WeightProvider
WeightProvider.Descriptor -
Field Summary
Fields inherited from class org.eclipse.emf.compare.match.eobject.DefaultWeightProvider
attributeChangeCoef, referenceChangeCoef, weightsFields inherited from class org.eclipse.emf.compare.match.eobject.AbstractWeightProvider
MAJOR, MASSIVE, NORMAL, SIGNIFICANT, SMALL, UNLIKELY_TO_MATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the weight associated with the fact some Object has changed it's containing reference.intReturn the weight associated with the fact some Object has changed it's container.intgetWeight(EStructuralFeature feature) Return the weight for the given feature.Methods inherited from class org.eclipse.emf.compare.match.eobject.DefaultWeightProvider
irrelevant
-
Constructor Details
-
EcoreWeightProvider
public EcoreWeightProvider()
-
-
Method Details
-
getWeight
Return the weight for the given feature.- Specified by:
getWeightin interfaceWeightProvider- Overrides:
getWeightin classDefaultWeightProvider- Parameters:
feature- anyEStructuralFeature.- Returns:
- the weight for the given feature. 0 meaning no effects.
-
getParentWeight
Return the weight associated with the fact some Object has changed it's container.- Specified by:
getParentWeightin interfaceWeightProvider- Overrides:
getParentWeightin classDefaultWeightProvider- Parameters:
a- any instance.- Returns:
- a weight representing the importance of the change of container to compute matches.
-
getContainingFeatureWeight
Return the weight associated with the fact some Object has changed it's containing reference.- Specified by:
getContainingFeatureWeightin interfaceWeightProvider- Overrides:
getContainingFeatureWeightin classDefaultWeightProvider- Parameters:
a- any instance.- Returns:
- a weight representing the importance of the change of containing reference to compute matches.
-