public static interface ProximityEObjectMatcher.DistanceFunction
ProximityEObjectMatcher
to compare EObjects and
retrieve the closest EObject from one side to another. Axioms of the distance are supposed to be
respected more especially :
Modifier and Type | Method and Description |
---|---|
boolean |
areIdentic(Comparison inProgress,
EObject a,
EObject b)
Check that two objects are equals from the distance function point of view (distance should be 0)
You should prefer this method when you just want to check objects are not equals enabling the
distance to stop sooner.
|
double |
distance(Comparison inProgress,
EObject a,
EObject b)
Return the distance between two EObjects.
|
double distance(Comparison inProgress, EObject a, EObject b)
inProgress
- the comparison being processed right now. This might be used for the distance to
retrieve other matches for instance.a
- first object.b
- second object.boolean areIdentic(Comparison inProgress, EObject a, EObject b)
inProgress
- the comparison being processed right now. This might be used for the distance to
retrieve other matches for instance.a
- first object.b
- second object.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.