Interface WeightProvider
- All Known Implementing Classes:
AbstractWeightProvider
,DefaultWeightProvider
,EcoreWeightProvider
public interface WeightProvider
Provide the weight to consider while comparing EObjects by their content.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Wrapper describing the given weight provider. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the weight associated with the fact some Object has changed it's containing reference.int
Return the weight associated with the fact some Object has changed it's container.int
getWeight
(EStructuralFeature attribute) Return the weight for the given feature.
-
Method Details
-
getWeight
Return the weight for the given feature.- Parameters:
attribute
- 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.- 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.- Parameters:
a
- any instance.- Returns:
- a weight representing the importance of the change of containing reference to compute matches.
-